Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help... C++ Console Application following the requirements below to allow entry of five game scores for a bowler so that an average score can

Please help...

C++ Console Application following the requirements below to allow entry of five game scores for a bowler so that an average score can be calculated, high and low scores determined, with all results displayed.

Detailed requirements:

When the program starts the bowler is prompted for a score for Game 1. Accept the bowling score from the user; valid bowling scores must be whole numbers between 0 and 300. Use GetValidInteger() from MyInputValidation.h to accept and validate user input. Once the entered score passes all validation, store the score in the relevant index of an array large enough to hold the five scores to be entered. The steps outlined above will all have to repeat (iterative structure required) to allow the entry of good scores for five games. Refer to the sample output on the next page to help guide you in your planning. For the purpose of this lab you must process your average score, and high/low scores at the time of each input. Ensure that the average is eventually rounded to the nearest whole number. NOTE: For this lab you may not use any of the sorting or searching functions to obtain the average, high or low You are required to write selection/iteration logic specific to the requirements of this lab. After input, clear the screen and then produce output to match the screenshots supplied. Display the original scores as shown followed by the player average, high score, and low score. Display a prompt to the user asking if they would like to process another bowlers scores for average calculation and high/low determination. If the user elects to enter another bowlers scores, clear the screen and repeat the entire process again beginning with a prompt to enter a score for Game 1; otherwise end the application with no further notification.

image text in transcribed

image text in transcribed

Please enter ScOre for Game 1 125 Please enter score for Game 2: 400 and 300 Invalid input. Please try again and enter a value between 300 Please enter SCOre for Game 3 256 Please enter score for Game 4 Bob Invalid input. Please try again and enter a nuneric value 100 Please enter score for Game 5: 218

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_2

Step: 3

blur-text-image_3

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Whats your heart telling you?

Answered: 1 week ago