Please use PyCharm CE
My daughter’s volleyball league would like a program that will accept the number of points that each team scored in a volleyball match and then display the game data along with the winner of the match.
For this program, we will assume that all 5 games will be played and there will be a winning team for each game. In order to win a game, the winning team must score at least 15 points and must win the game by at least 2 points. In the case that one team reaches 15 points and does not have a 2-point lead, then the teams keep playing until one team achieves a 2-point advantage.
The program should ask the user to enter the number of points that each team scored in each game. If an illegal entry is made, an error message should be displayed, and the user will be allowed to reenter the scores for that game.
After all the scores have been entered, a formatted table should be which includes the game number, team scores for each game, and winning team for each game.
Finally, the winner of the match will be displayed. The winner of the match is the team that wins at least 3 of the 5 games.