Write a C++ program that reads in letter grades for a class. Acceptable grades are A, B, C, D, and F. The user may enter as many grades as desired and enters a Z to indicate the end of the grades. The terminating letter Z does not count as a grade. No plus or minus should be attached to a grade. The program should ignore any other characters entered by the user. Your program should treat a lower-case letter like its upper-case equivalent; for example, process a b as if it were a B.
The program should keep track of the number of students that passed (D or above) and the number that failed (F). After the user finishes entering the letter grades, the program should calculate and print the percentage of students passing and failing as well as the class grade-point average (GPA) (A = 4.0, B = 3.0, C = 2.0, D = 1.0, F = 0.0).
Any letters that the user enters that are not A, B, C, D, or F do not participate in the calculation of the pass/fail percentage and do not contribute to the GPA calculation. If the user enters a Z before entering any valid letter grades, the program should terminate without printing anything.
Enter grades (Z terminates the list): A B B C F D Z
Students passing: 5 (83.3333%)
Students failing: 1 (16.6667%)
Class GPA: 2.16667
this assignment shouldnt be that hard but for some reason i cant figure out how to get the program to read as many inputs as the user wants to put in. i think i can do the rest after that.