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
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