Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

Explain the causes of indiscipline.

Answered: 1 week ago