Question
JAVA PROGRAMING BEGIN This program tracks stats for the National Dreadball Association. Your menu must provide the options below. Your data will consist of one
JAVA PROGRAMING BEGIN
This program tracks stats for the National Dreadball Association. Your menu must provide the options below.
Your data will consist of one array that holds the names of the teams, one array for wins, and one array for losses.
You might be able to do it with a two dimensional array, but don't worry about it.
My output is ugly because of Canvas. But I won't actually care if your output is ugly. In real life you'll never have a job where you output to the console.
Choice 3 and 4 only affect a single team.
Assume a team could have played someone from another league not shown here. That is, you dont need A beat B for choice 3, just record a win for A.
Sample Output: Howdy sports fan!
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
2
There are no teams.
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
3
There are no teams.
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
7
That is not a choice.
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
1
How many teams should I make?
4
Team 1s name?
Trontek Team 2s name?
Midgard Team 3s name?
Greenmoon Team 4s name?
Skittersneak
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
2
W L
Trontek 0 0
Midgard 0 0
Grreenmoon 0 0
Skittersneak 0 0
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
3
Which team won a game?
Trontek
Trontek now has 1 win.
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
2
W L
Trontek 1 0
Midgard 0 0
Grreenmoon 0 0
Skittersneak 0 0
Please pick an option from the list below:
1) Create league
2) List all teams
3) Record a win
4) Record a loss
5) Quit
5
Order Dreadball today!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started