[solved]-Write C Program Calculates Average Group Test Scores Stored One Dimensional Array Scores L Q39077911

Please write the C++ program using Array and Headerfile
Write a C++ program that calculates the average of a group of test scores (stored in a one-dimensional array scores), where the lowest score in the group is dropped. It should have the following functions: void getScore() should ask the user for a test score, store it in a reference parameter variable and validate it. This function should be called by main once for each of the five scores to be entered. • void calcAverage() should calculate and display the average of the highest scores. This function should be called just once by main and should be passed the scores array with the five scores int find Lowest() should find and return the lowest of the five scores from the scores array passed to it. It should be called by calcAverage, which used the function which of the five scores to drop. • Input Validation: Do not accept test scores lower than 0 or higher than 100. • Add a header file that includes const int maxscores = 5; // scores array Ask the user to input the Name, then each of the 5 scores: o o o O O o 0 o E.g. Enter Name: Darth Vadar Enter Score: 20 Enter Score: 30 Enter Score: 40 Enter Score: 50 Enter Score: 60 Average of the FOUR highest scores is: 45 (30+40+50+60=180 then divide by 4) • Log the results to an output file ‘Average’ everytime the user runs the program E.g. 0 Darth Vadar 20 30 40 50 60 average is 45 o Luke Skywalker 30 30 50 50 20 average is 40 Show transcribed image text Write a C++ program that calculates the average of a group of test scores (stored in a one-dimensional array scores), where the lowest score in the group is dropped. It should have the following functions: void getScore() should ask the user for a test score, store it in a reference parameter variable and validate it. This function should be called by main once for each of the five scores to be entered. • void calcAverage() should calculate and display the average of the highest scores. This function should be called just once by main and should be passed the scores array with the five scores int find Lowest() should find and return the lowest of the five scores from the scores array passed to it. It should be called by calcAverage, which used the function which of the five scores to drop. • Input Validation: Do not accept test scores lower than 0 or higher than 100. • Add a header file that includes const int maxscores = 5; // scores array Ask the user to input the Name, then each of the 5 scores: o o o O O o 0 o E.g. Enter Name: Darth Vadar Enter Score: 20 Enter Score: 30 Enter Score: 40 Enter Score: 50 Enter Score: 60 Average of the FOUR highest scores is: 45 (30+40+50+60=180 then divide by 4) • Log the results to an output file ‘Average’ everytime the user runs the program E.g. 0 Darth Vadar 20 30 40 50 60 average is 45 o Luke Skywalker 30 30 50 50 20 average is 40
Expert Answer
Answer to Write a C++ program that calculates the average of a group of test scores (stored in a one-dimensional array scores), wh… . . .
OR

