Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Lab Assignment 1: NHL Simulator Tool
Page 1
Aim – To implement a simulation of an ice hockey season in one of the divisions of the NHL
(National Hockey League) that would potentially allow a given team to estimate its chances of
making it to the playoffs. The simulation will run as a text-based, interactive, and menudriven
program that will comply with a set of rules as specified below.
The objectives in this assignment are multiple. First, to build a small prototype of a data analysis
tool, using as input artificial data generated as pseudo-random numbers, which could
eventually grow to a robust hockey player performance evaluation tool using real NHL
statistical data. Second, to give you practice designing and coding simple classes and methods
using loops, conditionals and console I/O in the Java language. Third, to give you an initial
exposure to object-oriented techniques to solve computational problems.
To attain the goals of this prototype, you will write the following Java classes:
1) A class Player to keep track of identification and performance attributes for a hockey
player.
2) A class Team to maintain hockey player configurations and team results.
3) A class Game to simulate and capture the results of a hockey game.
4) A main driver class NHLSimulator that will be able to simulate the results of each and all
the ice hockey games scheduled for an NHL hockey season and conference, respond to
inquiries about individual players, handle the interactions with the user of the
simulation via a text-based interactive menu, and display on the user’s console a
formatted report according to a given specification.
General Description
As a software developer, working for the administration office of the Toronto Maple Leafs ice
hockey team, you have been tasked to write a Java program that would simulate the results of
hockey games based on a random, range-limited estimation of the skill level of the players
involved in them. Executive management at this hockey club wants to have this simulation tool
to estimate how well the current player roster would fare against other teams in its own
conference. They would like to know whether the team has a good chance of making it to the
playoffs this year. To meet this goal, the team needs to finish the regular season in at least the
8
th position in its conference.
An annual NHL season is played in two conferences: Eastern and Western, each one having 16
(see Table 1, Appendix A) and 15 teams, respectively. Your program will simulate game results
between Eastern conference teams only, that is, interconference games are not included.
Therefore, the final tallying of results and team positions in the Eastern conference will be
based only on the games specified above.