Question: ChatGPT Share You said: You will be writing a program to score bowling for several players. Your job will be to ask for players and

ChatGPT
Share
You said:
You will be writing a program to score bowling for several players. Your job will be to ask for players and their scores, then add up their score. When all players have been entered, the user will type "done". Then, your program will tally up the worst and best player and output who won and who lost the game.
Restrictions
1. You must use a vector to store all of the player names. All player names will be a single name.
2. You must use another vector to store the total score for each player. You must calculate the total score for each player after all rolls have been entered.
3. You must use an array or a vector to store each roll's value (see rubric below for more hints).
4. The number of rolls is variable depending on whether the player threw a strike (knocked down 10 pins in one roll), spare, or neither. Please see "Scoring Bowling" below.

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 Programming Questions!