Cambridge igcse computer science book

Page 212

PRINT "Highest Mark is", SubjectHighest PRINT "Lowest Mark is", SubjectLowest NEXT OverallAverage � OverallTotal/2400 PRINT "Overall Average is", OverallAverage PRINT "Overall Highest Mark is", OverallHighest PRINT "Overall Lowest Mark is", OverallLowest

b For the algorithm to be tested by dry running, it would be a good idea to reduce the number of students to 5 and the number of subjects to 2.

Activity 10.6 a Identify the changes you would need to make to the algorithm for Example 2 to reduce the number of students to 5 and the number of subjects to 2. b Identify the test data needed to test Example 2 with the reduced number of students and subjects. c With the set of data you have chosen, set up and complete a trace table so that you can compare your expected results with the actual results when you dry run the algorithm.

10.8 Standard flowchart symbols Flowcharts are drawn using standard symbols.

10.8.1 Begin/End Terminator symbols are used at the beginning and end of each flowchart.

Figure 10.5 Terminator symbols

10.8.2 Process Process symbols are used to show when values are assigned to an item/variable like 212


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.