Uploaded by Trevox wayz

4 5782676656606939957

advertisement
CP 111: PRINCIPLES OF COMPUTER PROGRAMMING
CLASS WORK
05/07/2021
A standard I class teacher at Mugumu Primary School wants a program to calculate the sum and
average marks of student for the monthly exam. A student may sit for any number of exam, since
the school by-laws allows student to postpone any exam if he/she is not healthy. The program will
print the sum, average of marks, and the grade of marks. The grade ranges as follows:
0 – 20
F
21 – 40
D
41 – 60
C
61 – 80
B
81 – 100
A
The program should restrict marks below 0, and above 100.
Download