Question: (C++ Visual studio) You are to write a program that would help me compute average grade of a student. I would like to enter a

(C++ Visual studio)

You are to write a program that would help me compute average grade of a student. I would like to enter a set of grades into the program, I will let the program know that I am done entering the grades by entering -1 as the grade. So until I enter -1, the program should keep asking me for another grade to enter. Once I am done entering grades, the program should output the average grade and sum of the grades. Make sure that you are using for loop for this program (no while loop). Step 1: Identify Input and Output for this program. Step 2: Write input section of your program to get the input from user into variables. Step 3: Write the processing part by computing sum and average of the input grades. Step 4: Write the output section by printing the sum and average grade. - Make sure that you have some comments clearly indicating variable declarations, input, processing and output. - Test your code -- make sure that it produces the right output.

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!