Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3.) In main0, declare an array named: testScores Array size 5 The array holds test scores (double data type). Use a constant variable named SIZE
3.) In main0, declare an array named: testScores Array size 5 The array holds test scores (double data type). Use a constant variable named SIZE in the array declaration. 4.) Include these 4 functions: - getScores This function prompts the user to enter 5 test scores. (see output) The testScores array is passed to the function. The scores entered by the user are read and assigned to the testScores array. o o o Use a for loop to read in and assign the scores. The function is void-returning. - o showMenu After the screen clears, this function displays a menu of 2 choices. No arguments are passed to the function, and no value is returned. (see output) o o - getChoice o After the screen clears, this function prompts the user to enter a choice. o No arguments are passed to the function. o The user's choice is read and assigned to a variable (char). o Then the value is returned to main). displayResult After the screen clears, this function displays the result, depending on the o user's choice
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started