Question: Write C++ program to input scores for 20 students using For loop. For each student, call a function called CalculateGrade that takes in 1 integer
Write C++ program to input scores for 20 students using For loop. For each student, call a function called CalculateGrade that takes in 1 integer parameter called score and returns the grade. This function should determine their grades using the ranges below : If Scores is in the range 90-100 then grade = 'A'if Scores is in the range 80-90 then grade = "B"if Scores is in the range 70-80 then grade = "C"if Scores is in the range 60-70 then grade = "D"if Scores is in the range 50-60 then grade = "E"If Scores is < 50 then grade = "F"
-Using Parameters Only-
-NO strings or arrays-
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
