Question: in codeblock for c++ program student Grade Statics Use functions to determine the number of letter grades from list of students' number grades. The requirements
student Grade Statics Use functions to determine the number of letter grades from list of students' number grades. The requirements are 1) Initialize the variables countGradeD, countGradeF to 0 a given , countGradeA, countGradeB, countGradec, 2) Validate the input data for the number of students in the class. Display error message if necessary 3) Read a number grade. If the number grade is in between 100-90, for example, then increment the countGradeA count and so on and so forth for all other grades. Letter grades are determined by the following - 90 100 A 80-89 70-79 60-69 0-59 4) Repeat Steps 2 and 3 for each number in the 1ist. 5) Print out the results which shows the counts for each grade. The following functions should be defined/implemented and called in main) - int getNumberofStudents) //make sure to validate number of students void Initialize(int&countGradeA, ints countGradeB, int& countGradec, int& countGradeD, int& countGradeF) void getNumberGrade (int& grade): //make sure to valid the grade void classifyGrades (int grade, int& countGradeA, int& countGradeB int& countGradec, int& countGradeD, int& countGradeF); void printResults (int countGradeA, int countGradeB, int countGradeC, int countGrade D, int countGradeF)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
