Question
I want to create a bowling scoring program. I need it to be written in Python format. At the end of each game, I need
I want to create a bowling scoring program. I need it to be written in Python format.
At the end of each game, I need the program to ask to record the scores for each team member. You then type in their name and that person's score for the game on a single line.
When there are no more players to input, enter an empty line. The program needs to then print the following lists in columns: 1. The names and scores of each bowler in the order entered 2. The names and scores in descending order with high scorer at the top 3. The names and scores in alphabetical order
If anyone scores a perfect game, put an asterisk in front of their name. Next, the program should display the following summary of information: 1. Display a congratulatory message showing the high score and who got it 2. Display a sympathetic message showing the low score and who got it 3. The team average score, rounded down to the nearest pin
Last, the program needs to write each of the lists and the summary of information to a text file called game_results.txt in the same format it is displayed on the screen.
The program needs to work with the following input: Sam 200 Bill 125 Mary 235 Jane 205 Alex 300 Sue 280
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