Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++. Thank you Write a program that will prompt for grades and calculate the average. The grades will be stored in an array called Gradeslnput

image text in transcribed

C++. Thank you

Write a program that will prompt for grades and calculate the average. The grades will be stored in an array called Gradeslnput that is defined in main. The maximum number of grades that can be stored in the array is 1,000. The variable holding the actual number of grades the user entered should be defined in main and should be called GradeCount. The program will have two functions in addition to main. The 1st function should be called from main and should keep prompting the user for grades till a sentinel is entered, capture those grades and store them in Gradeslnput. This function should also update the variable GradeCount in main. The 2nd function should be called from main and should find the average of the grades in Gradeslnput. The average of the grades should be printed out from main. DO NOT USE GLOBAL VARIABLES. . Sample Run 1: 90, 80, 50. Sample Run 2: 70, 75, 80, 85, 90

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

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

Define marketing.

Answered: 1 week ago

Question

What are the traditional marketing concepts? Explain.

Answered: 1 week ago

Question

Define Conventional Marketing.

Answered: 1 week ago

Question

Define Synchro Marketing.

Answered: 1 week ago