Question: C++ program Uses the inputVal() function to prompt the user for the scores of a basketball game for each quarter and each team Stores the

C++ program

Uses the inputVal() function to prompt the user for the scores of a basketball game for each quarter and each team

Stores the scores in parallel vectors

If the score is tied at the end of the 4th quarter, increase the size of the vectors by 1 and get scores for the additional quarter (repeat as many times as necessary until the tie is broken)

When the game is over (one team has more points than the other at the end of the fourth or later quarter), print a well-formatted box score table of the game, including the total score for each team

Displaying a well-formatted graph of the difference in total score of each team after each quarter, as shown in the sample output

o The height of the graph must exactly fit the max positive and negative differences during the game

o Each row in the graph must be labeled

o Each column must line up with the box score

Please enter a number (min: no limit, max: 32): 100 Invalid input, try again!

Please enter a number (min: no limit, max: 32): -123123

Please enter a number (min: 32, max: 212): 0 Invalid input, try again!

Please enter a number (min: 32, max: 212): 300 Invalid input, try again!

Please enter a number (min: 32, max: 212): 100

Please enter a number (min: 212, max: no limit): 100 Invalid input, try again!

Please enter a number (min: 212, max: no limit): -100 Invalid input, try again!

Please enter a number (min: 212, max: no limit): 212

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