A school wants a program to calculate the average test score for a student and give a grade.
The program should:
Ask the user to enter three test scores (whole numbers between 0 and 100).
Calculate the average of the three scores.
Display the average score.
Display a grade based on the average:
Grade A if the average is 70 or above
Grade B if the average is 60 to 69
Grade C if the average is 50 to 59
Grade D if the average is below 50
(a) Write an algorithm using pseudocode or a flowchart to solve this problem.
(6 marks)
(b) Write a program in Python that follows your algorithm.
(6 marks)
Modify your program so that:
If any score is less than 0 or greater than 100, display an error message and do not calculate the average.