Development Life Cycle (CIE IGCSE Computer Science)

Topic Questions

1
Sme Calculator
9 marks

TASK 1 – Set up arrays
Set-up one dimensional arrays to store:

• Student names
• Student marks for Test 1, Test 2 and Test 3

o Test 1 is out of 20 marks
o Test 2 is out of 25 marks
o Test 3 is out of 35 marks

• Total score for each student

Input and store the names for 30 students. You may assume that the students’ names are unique.
Input and store the students’ marks for Test 1, Test 2 and Test 3. All the marks must be validated on entry and any invalid marks rejected.

TASK 2 – Calculate

Calculate the total score for each student and store in the array.
Calculate the average total score for the whole class.

Output each student’s name followed by their total score.
Output the average total score for the class.

TASK 3 – Select
Select the student with the highest total score and output their name and total score.

(i)
Show the design of your algorithm to complete Task 1 and Task 2 using pseudocode, programming statements or a flowchart. Do not include any of the validation checks or input prompts in your algorithm.

[8]

(ii)
Comment on the efficiency of your design.

[1]

Did this page help you?