Question: In c++ Write a program that prompts'a uer for their grades, finds the average and prints out a letter grade From main, the program calls
Write a program that prompts'a uer for their grades, finds the average and prints out a letter grade From main, the program calls a function called GetGrades that will prompt the user for the number of grades they want to input, and read in those grades from the keyboard. GetGrades will find the sum of those grades and pass the sum and number of grades to another function called FindAverage FindAverage will find the average of the grades and return this average to GetGrades. . GetGrades will return this average to main The main function will then determine the letter grade that corresponds to the average and print out the average and letter grade .90-100 A 80-89 B 70-79 C . 60-69 D .0-59 F Note: All arguments in this Lab must be passed by Value. GetGrades and FindAverage functions must return their result to the calling function. Output Runs: Runl-30, 50, 90, 100 Run2 85, 89, 90, 95, 78, 99 Run3- 85, 95
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
