Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help coding this assignment in python Program Requirements Create a Python console application following the requirements below to allow the entry of six
I need help coding this assignment in python
Program Requirements Create a Python console application following the requirements below to allow the entry of six bowlers' scores for a bowling game. After that, the average, minimum and maximum scores are determined, and all results displayed. . . . . Detailed requirements: When the program starts, it will prompt for the score of Bowler 1. Bowlers' score must be numeric and cannot be fractions. For any entries that are not whole numbers, the program should display an appropriate error message and re-prompt for that bowler's score. Once a numeric score is entered, then the program should perform range validation to ensure the score is within the required range. Valid 10-pin bowling scores are whole numbers between 0 and 300. If the bowler enters a value outside of the acceptable range, the program should display an appropriate error message and re-prompt for that bowler's score. Once the entered score passes all validation, add this score to the list of scores, which will eventually hold all six bowlers' scores. The steps outlined above will have to repeat (loop structure required) to allow the entry of valid scores for six bowlers. Refer to the sample output on the next page to help guide you in your planning. Once six valid scores have been entered and added to the list of scores, you can then go ahead and process the list to determine the average of the six bowlers' scores rounded to the nearest whole number, as well as the bowler with the highest score and the bowler with lowest score. After processing, clear the console screen Using the entered scores, produce the formatted output matching the screenshots as close as possible. Display the six bowlers' scores as shown followed by the average score, winner, and loser. In case 2 or more bowlers have the same highest/lowest scores, only 1 will be displayed. Bonus marks opportunity. Prompt the if they would like to process another game. If they elect to enter another game, repeat the entire process again beginning with a prompt to enter a score for Bowler 1; otherwise end the application with no further notification. . . . A Warning: You are not allowed to use built-in functions that would solve the problem instantly, such as: sort(), min(), max(), sum(), mean(), median(), index() etc. You must determine min/max/average values by using loops, which is the main point of this assignment. Also, sorting is not a good idea in this case because would change the order of the elements. Program Requirements Create a Python console application following the requirements below to allow the entry of six bowlers' scores for a bowling game. After that, the average, minimum and maximum scores are determined, and all results displayed. . . . . Detailed requirements: When the program starts, it will prompt for the score of Bowler 1. Bowlers' score must be numeric and cannot be fractions. For any entries that are not whole numbers, the program should display an appropriate error message and re-prompt for that bowler's score. Once a numeric score is entered, then the program should perform range validation to ensure the score is within the required range. Valid 10-pin bowling scores are whole numbers between 0 and 300. If the bowler enters a value outside of the acceptable range, the program should display an appropriate error message and re-prompt for that bowler's score. Once the entered score passes all validation, add this score to the list of scores, which will eventually hold all six bowlers' scores. The steps outlined above will have to repeat (loop structure required) to allow the entry of valid scores for six bowlers. Refer to the sample output on the next page to help guide you in your planning. Once six valid scores have been entered and added to the list of scores, you can then go ahead and process the list to determine the average of the six bowlers' scores rounded to the nearest whole number, as well as the bowler with the highest score and the bowler with lowest score. After processing, clear the console screen Using the entered scores, produce the formatted output matching the screenshots as close as possible. Display the six bowlers' scores as shown followed by the average score, winner, and loser. In case 2 or more bowlers have the same highest/lowest scores, only 1 will be displayed. Bonus marks opportunity. Prompt the if they would like to process another game. If they elect to enter another game, repeat the entire process again beginning with a prompt to enter a score for Bowler 1; otherwise end the application with no further notification. . . . A Warning: You are not allowed to use built-in functions that would solve the problem instantly, such as: sort(), min(), max(), sum(), mean(), median(), index() etc. You must determine min/max/average values by using loops, which is the main point of this assignment. Also, sorting is not a good idea in this case because would change the order of the elementsStep 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