Java Project 2: Treehouse Java Tech Degree
This program allows you to create, organize, and review soccer teams for fairness. The initial menu is as follows. A team with coach has been created:
There are currently 33 registered players.
Add - Add a player to a team
Roster - View roster
Report - View a report of a team by height
Create - Create a team
Quit - Exits the program
Remove - Remove a player from a team
Balance - View the League Balance Report
Select an option: create
What is the team name: Stars
What is the coach name: Dana
The team Stars has been created with Dana as coach.
An array of players to be added to the teams is already contained in Players.java.
Select an option: add
Teams:
1.) Team Stars with coach Dana
Please choose the team number: 1
List of players by height:
1.) Sammy Adams(45 inches - inexperienced)
2.) Chloe Alaska(47 inches - inexperienced)
...
32.) Johnny Thunder(47 inches - inexperienced)
33.) Arfalseld Willis(43 inches - inexperienced)
Choose player number for team Stars:1
Sammy Adams has been added to Stars
Players can be both added and removed from the team of your choice. The player chosen for a team will be removed from the list of players.
Choosing the option "report" will give you a list of players on the team grouped into 3 height categories. It will also give a count of the number of players in each category.
Select an option: report
Teams:
1.) Team Birds with coach Mike
2.) Team Cats with coach Nicky
3.) Team Dogs with coach Brian
4.) Team Stars with coach Dana
Please choose the team number: 1
35-40 inches:
Kenny Lovins
41-46 inches:
Gabe Listmaker
Sammy Adams
Sal Dali
47-50 inches:
1 are 35-40 inches
3 are 41-46 inches
0 are 47-50 inches
Choosing the option "balance" will list players on a team grouped by experienced and inexperienced players. It also calculates the percentage of experienced players.
Select an option: balance
Teams:
1.) Team Birds with coach Mike
2.) Team Cats with coach Nicky
3.) Team Dogs with coach Brian
4.) Team Stars with coach Dana
Please choose the team number: 2
Experienced:
Les Clay
1 players are experienced.
Eva Gordon
Ryan Creedson
Arfalseld Willis
3 players are inexperienced.
25% of the players are experienced.
Choosing the option "roster" will give you an alphabetized list of all the players grouped by team.
Select an option: roster
Team Birds coached by Mike - [Sammy Adams(45 inches - inexperienced), Sal Dali(41 inches - inexperienced),
Gabe Listmaker(45 inches - inexperienced), Kenny Lovins(35 inches - experienced)]
Team Cats coached by Nicky - [Les Clay(42 inches - experienced), Ryan Creedson(43 inches - inexperienced),
Eva Gordon(45 inches - inexperienced), Arfalseld Willis(43 inches - inexperienced)]
Team Dogs coached by Brian - [Andrew Chalklerz(42 inches - experienced), Matt Gill(40 inches - inexperience
d), Herschel Krustofski(45 inches - experienced), Johnny Thunder(47 inches - inexperienced)]
Team Stars coached by Dana - [Chloe Alaska(47 inches - inexperienced), Ben Finkelstein(44 inches - inexperi
enced), Nick Grande(39 inches - inexperienced), Alena Sketchings(45 inches - inexperienced), Jill Tanner(36
inches - experienced)]