Question: Hi, I have a simulator problem. But, the difference is, for each quarter, I need to ask which team scored ( 1 or 2) and

Hi, I have a simulator problem. But, the difference is, for each quarter, I need to ask which team scored ( 1 or 2) and then select a score ( 1, 2, or 3) then add the score to that team:

See Sample Output:

Quarter: 1 Which team scored (1 or 2)? 1. How many points did they score (1, 2, or 3)? 1. Which team scored? (1 or 2) 1. How many points did they score (1, 2, or 3)? 3. After two scores the quarter ends. If any other team is selected the is should print out "Invalid team selected.

Same for Quarter: 2, 3 and 4. At the end of Quarter 4, the team scores should be totaled by quarter:

Team 1 Q1:5, Q2:5, Q3:5, Q4:5. Total: 25

Team 2 Q1:6, Q2:6, Q3:6, Q4:6. Total: 24

And print which team won the game! "Team 1 won the game."

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!