Question: // C++ only please-- Write a function called Scores that: Asks the user to enter the number of players. Creates a dynamic int array of

// C++ only please--

Write a function called Scores that:

Asks the user to enter the number of players.

Creates a dynamic int array of that size

Also Create an infinite loop in your main function:

Print a line asking user to select an option

1)Enter a new player score (int value to be added to the array)

2)See the full list of entered scores

3)Show the value of highest score

4)End the program

Performs the tasks and then continues with the loop

If you are using an array double the size of array if the user wants to enter a score after the array is full

Is called by the main function, and returns the pointer to the array.

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!