Answered step by step
Verified Expert Solution
Link Copied!

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(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions