Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in codeblock for c++ Student Grade Statics Use functions to determine the number of letter grades from a list of students' number grades. The requirements
in codeblock for c++ Student Grade Statics Use functions to determine the number of letter grades from a list of students' number grades. The requirements are given 1) Initialize the variables, countGradeA, countGradeB, countGradeD, countGradeF to 0. count Gradec 2) Display error message if necessary Validate the input data for the number of students in the class. 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 list 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(ints countGradeA, ints countGradeB, ints countGradec, int& countGradeD, int& countGradeF) ; void getNumberGrade (ints grade): //make sure to valid the grade. void classifyGrades (int grade, ints countGradeA, int&countGradeB, int& countGradec, int& countGradeD, int& countGradeF); void printResults (int countGradeA, int countGradeB, int countGradec, int countGradeD, int countGradeF)
in codeblock for c++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started