Delete all the existing code from main.cpp. You will write the code in the file main.cpp Write a C++ program that reads
Posted: Sat Nov 27, 2021 2:42 pm
Delete all the existing code from main.cpp. You will write the code in the file main.cpp Write a C++ program that reads the number of students, N. The program asks the user to enter their GPAs and stores them in an array of type double (with max size 100). The program then determines the grade of each student based on their GPA and stores it an array of type char. The program prints each student's GPA and grade. Lastly, the lowest GPA and its corresponding index is printed. GPA Grade 3.75 -4.0 A 3.0 - 3.74 B ะก 2.0 - 2.99 D 1.0 - 1.99 F 0.0 - 0.99 Test the program with the input as shown below in the sample input/output. Sample Input/Output: Save and Submit Save All Answers