Write a Python program to manage league matches (below), considering the following: a. 8 Different teams participated in a league. b. A player belongs to a team and a team played a match or more in the league. c. For each team, the league wants to track the name of the team and how many matches they played. d. The league also wants to track the number of points each team scored in the game, and the total numbers of points scored across all games played. e. Predict the finals scores and the winner. First draw a UML to represent the given class. Then, create the necessary classes (with their attributes and methods) to represent the problem. Then create a separate module to test the classes created for the 7 matches and display the final report of the league matches, scores and the winner team
Write a Python
a. 8 Different teams participated in a league.
b. A player belongs to a team and a team played a match or more in the league.
c. For each team, the league wants to track the name of the team and how many matches they
played.
d. The league also wants to track the number of points each team scored in the game, and the
total numbers of points scored across all games played. e. Predict the finals scores and the winner.
First draw a UML to represent the given class. Then, create the necessary classes (with their attributes and methods) to represent the problem.
Then create a separate module to test the classes created for the 7 matches and display the final report of the league matches, scores and the winner team.
Step by step
Solved in 2 steps with 4 images