Midterm Project
Midterm Project
Name of Group:
Name of group members:
There are 8 teams - team1 through team8 for EU Championship soccer tournament. Create two groups
as follows:
The winner of the final is the champion, and the loser is the runners up of the EU Championship.
For each match FIFA pays a team $1 million, for semifinals each team is paid $1.5 million, the champion
is paid $3 million, and the runner-up is paid $2 million. Create a polymorphic method called 'pay' that
will return a team's total earnings from this championship.
Write the program with one super class called 'Team', at least two sub classes, and a driver class in which
instantiate four teams - the champion, the runners up, a team that lost the semifinal, and a team that
only played group matches and could not qualify for the semifinal. Show how much each of these four
teams earned.