Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

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 to store each roll's value.

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.

5. You must use a for loop to input the roll values into the array.

6. If the user types "done" before entering any names, output "No players were entered."

7. In the event of a tie, the first player to obtain the best or worst score should be printed.

8. You can assume that the user will input valid scores. You do not need to perform error checking for invalid input.

This program is in c++ and it follows the real scoring of bowling

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago