Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Your program is going to compare the scores of two volleyball teams that play each other. To win a match in volleyball, a team must get 25 points....

Your program is going to compare the scores of two volleyball teams that play each other. To win a match in volleyball, a team must get 25 points. But the team must also win by 2. So even if a team reaches 25, that game continues until one team is ahead by 2 points. Let's assume that these two teams are going to play five matches.

Your program should accept from the user the scores for each team one match at a time. If at any time that user enters scores that violate the 25-point rule or the "win by 2" point rule, print an error on the screen and make the user enter both scores again.

When the user is finished entering the scores, the program should print which team won the game. This is the team that won the most matches.

You have to use arrays and loops in this assignment.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question