Algorithms Homework 1 Flowcharts and Pseudocode
Algorithms Homework 1 Flowcharts and Pseudocode
Homework 1
1. Draw a flowchart for a program which asks the user to enter a password. If the user enters
“HiThere!” then print “Welcome”, and continue (indicate continuation with a dotted line).
If they enter a different password, print “Wrong password” and end the program. [4]
2. An algorithm is to be written which calculates the average of a set of student marks entered
at a keyboard. The flowchart on the next page describes the steps in the algorithm.
However, most of the stages have been omitted.
Complete the flowchart, using item number only, from the list of items given.
1
Homework 1
Unit 7 Algorithm design and programming
Start
count = 0
Prompt for
first mark
Input
mark
Yes Yes
No No
End
[6]
[Total 10 marks]