Question: 1. In main0. declare an array named testScores -Array size The array holds test scores(double data type) - Use a constant variable named SIZE in

 1. In main0. declare an array named testScores -Array size The

1. In main0. declare an array named testScores -Array size The array holds test scores(double data type) - Use a constant variable named SIZE in the array declaration 2. Include these 4 functions getScores: This function prompts the user to enter 5 test scores The testScores array is passed to the function The scores enterred by the user are read and assigned to the testScores array. (use a for loop to read in and assign the scores) The function is void-returning showMenu : After the screen clears, this function displays a menu of 2 choice No argument are oassed to the function, and no value is returned. getChoice: After the screen clears, this function prompts the user to enter a choice No arguments are passed to the functin. The user's choice is read and assigned to a variable (char) Then the value is returned to mainO - displayResult: After the screen clears, this function display the result, depending on the user;s choice if the user enter A or a, the average is displayed if the user enters B or b, all of the test scrores are displayed. However, if the user makes a mistale ad enters a C or any other letter, this is displayed : Invalid entry.! /l example output Enter 5 test scores 86->getScores0 function 59 92 screen clears A) Calculate the average of the test scores B.) Display all test scores Enter your choice: AgetChoice function > showMenu0 function screen clears The average is 82.60

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!