Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 B C D or F 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started