Assignment 1

Introduction: Flowchart and Pseudocode

Programming is a logical process. In order to create a program, you must first determine the problem to be solved. Many programmers use pseudocode as a first step to creating their program. Pseudocode allows the programmer to describe the problem logically without having the actual code (in the complex programming language) in the document. Something as simple as clapping your hands can be explained logically using pseudocode, as in the example below.

Problem: A response is required at the conclusion of a spectacular concert performance.

Steps

Decide to clap
Extend both right and left arms forward away from the body
Open hands
Rotate hands so that right hand and left hand palms are facing each other
Move right hand toward left hand until palms are touching
Move right hand away from left hand 12 inches
Repeat steps 5 and 6 20 times.
Drop hands to sides of body
End clap

Based on this example, you can see that something as simple as clapping has many steps.

Activity Instructions

For this assignment, create pseudocode for the process of getting out of a chair and shaking hands with someone. As you are creating the steps, practice them or play them out in your head to be sure that you dont miss anything.

Assignment 2

Introduction: Representing Pseudocode with Flowcharts

Flowcharting provides a graphical representation of what a program must do. There are standard flowchart objects to represent processes, decisions, etc. and putting your pseudocode into a flowchart will help you identify coding issues.

Activity Instructions

Now that you have created pseudocode to help you create a program, lets create a flowchart to assist with the program. Using the steps below and proper flowchart objects, create a flowchart for the process of clapping your hands.

Steps

Decide to clap
Extend both right and left arms forward away from the body
Open hands
Rotate hands so that right hand and left hand palms are facing each other
Move right hand toward left hand until palms are touching
Move right hand away from left hand 12 inches
Repeat steps 5 and 6 20 times.
Drop hands to sides of body
End clap
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.