Question: Write a program that prompts the user to enter five grades. The grades are either A ( 4 ) , B ( 3 ) ,

Write a program that prompts the user to enter five grades. The grades are either A(4), B(3), C(2), D(1), or F(0). the program then computes the GPA and outputs the grades with the GPA. First declare an array of five characters named grades. Use a constant for the size of the array. Use the constant everywhere where you are referring to the suze of the array! use a loop to read each grade into the array. Use another loop to compute the total integer value of all the grades. divide it by the length of the array to get the average. show a message to the console to let the user know his grades. use a third loop to output the grades. finally, output the average of all grades

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!