Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

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

Students also viewed these Databases questions