Write a program that asks three students about the grade they received in four classes each, then
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that asks three students about the grade they received in four classes each, then prints the
GPA of each student. Assume that all the classes have the same number of credits, therefore, the GPA is
simply the average of the grades. The grades input by the user are (4,3,2,1,0) which correspond to
(A,B,C,D,F) respectively. If the user enters an invalid grade, consider it as grade 0.
In this program, it is known that there will be three students and each student has four classes.
What's the suitable loop structure for this program?
Below is a sample output. Include this output as one of your test cases.
Related Book For
Posted Date: