Computing+Exams

The Computing Department run two tests in S4, one out of 40 and one out of 80. A program is required to allow the class teacher to input the results of class tests for 5 students.
 * Specification**

For each student the program should say whether or not they have passed or failed the course. A student will pass the course if they score a total of 60 or more. At the end of the program it should display the total number of students that passed the course.


 * Example Output**

1. Initialise Total Passes 2. Repeat 5 Times
 * Design **

3. ....Get Pupil Name 4. ....Get Test 1 5. ....Get Test 2 6. ....Set Total Marks to Test 1 + Test 2 7. ....If Total Marks > 59 Then 8. ........Display Pass Message 9. .......Add 1 to Total Passes 10. ...Else 11. .......Display Fail Message 12. ...End If 12. End Repeat


 * Code **

The Scratch program has been written below but there are 6 parts which have been blanked out. You need to write the program using the specification to help you work out the missing code.




 * Testing **

Test that your program displays the correct output for:


 * Anna, 40, 50
 * Lee, 25, 27
 * Sam, 32, 52
 * Jane, 4, 17
 * Ahmad, 31, 51