🏠 Home

Write a program that will analyze, for your class, the grades obtained by all the students in any module test taken. The program will prompt the user to enter the grade for each student. Valid grades are A, B, and C. The program calculates and displays the total number of As, Bs and Cs. The user should be able to enter the grades in uppercase or lowercase. You may assume there are only 10 students in your class. Your program must be modular. Write a function to read and total the grades and another to print the results. A skeleton of the program is given below: char grade; //-- global variables int totalA, totalB, totalC; int main() { readandTotalGrades(); displayTotals(); return 0; }

Loading Player...

Downloads