Computer Science
GRADE 7
Algorithm and Flowchart
Name: Remarks:
Class:
Marks: / 13
Use Shapes in MS Word for drawing flowchart.
The flowchart below displays a partly completed algorithm for a game that
simulates the throwing of three dice to find the player’s score.
• If all three are equal, then the score is the total of the dice.
• If two are equal the score is equal to the sum of the two equal dice minus
the third.
• If none are equal, then the score is zero.
1 Complete the flowchart of the algorithm.
Use the algorithm to calculate the
2 scores from the following dice throws:
a363
b545
3 It is possible to obtain a negative score using the algorithm.
State three dice numbers that would result in a negative score.
[1]
[10]
4 Save your flowchart as Class Activity 2 in your folder. [2]