Question: C++ Exercise #1: Simple usage of repetition (while) loops with switch statement Write a program that reads in grades A o The program first reads

 C++ Exercise #1: Simple usage of repetition (while) loops with switch C++

Exercise #1: Simple usage of repetition (while) loops with switch statement Write a program that reads in grades A o The program first reads the number of gr grade on a separate line. The program also counts the number of invalid entries. If the number of grades is less than or equal to zero then the program prints an error message and stops r a, B or b, Cor c, D or d, or F, or f and then prints out the total for each grade. ades to be added then reads each grade and finally prints the total of each Sample input/ output: nput the number of grades 9 nput a grade: e Input a grade : y nput a grade: D input a grade : A Input a grade: a nput a grade: 1 Input a grade: F nput a grade: b Input a grade : C The number of As is: 2 The number of Bs is: 1 The number of Cs is: 1 The number of Ds is: The number of Fs is: 1 1 The number of invalid input is: 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!