Question: Purpose : This program demonstrates the use of one-dimensional arrays. An array of scores is read, printed, and the average of the scores is printed.

Purpose : This program demonstrates the use of one-dimensional arrays. An array of scores is read, printed, and the average of the scores is printed. ******************************************************************************/ #include #include #include //for the exit() function using namespace std; //function prototypes void ReadInScores (int scores[], int & howMany); float FindAverage(int scores[], int howMany); void PrintScores(int scores[], int howMany); int main() { //varible declaration const int MAX_SCORES = 30; //the array has at most 30 entries int scores [MAX_SCORES]; //an array of test scores with 30 entries int howMany; //the actual size of the array float averageScore; //the average of the scores array //activate the function to read the scores ReadInScores(scores, howMany); //activate the function to print the scores PrintScores(scores, howMany); //Place your activation statement for FindAverage() here //averageScore will be assigned from FindAverage cout<<"Average score is : "<

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!