Assignment 4 – AK/ITEC1620 3.0

Problem

In a certain sports league, a group of teams plays through a Schedule of Game (see linked APIs). At the end of this Schedule, they want to determine the winner.

To determine the winner, you will have to determine for each team how many Games they won, lost, and tied.  Assuming 2 points for a win, 1 point for a tie, and 0 points for a loss, you can then determine how many points they scored during the season.  The team(s) with the most points is then the winner.

Required Classes (save the class files below to your working directory):

Game.class
Schedule.class

Sample Program Run:

You should build your application to take no input and produce output similar to the following.  If your application works correctly, then your program output should look like the following:
Vancouver - 3 wins, 2 losses, 0 ties = 6 total points
Calgary - 2 wins, 3 losses, 2 ties = 6 total points
Edmonton - 1 wins, 3 losses, 2 ties = 4 total points
Toronto - 2 wins, 3 losses, 2 ties = 6 total points
Ottawa - 4 wins, 3 losses, 1 ties = 9 total points
Montreal - 4 wins, 2 losses, 1 ties = 9 total points

The season winner(s) with 9 points
Ottawa
Montreal

Program Template

public class SeasonWinner
{
 public static void main (String[] args)
 {

 }
}

Grading

Demonstrate the operation of your program to the TA.