Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java application for managing an amateur sports league. The application can be console- or GUI-based. If a GUI is provided, it must

Write a Java application for managing an amateur sports league. The application can be console- or GUI-based. If a GUI is provided, it must be developed using JavaFX. That said, the console-based approach will probably be simpler. The application must provide the following functionality: 1. Set up a league: The name of the league, the number of teams and the teams' names should be specified by the user at run-time. 2. Add individual games: The user should specify the participating teams by name and provide their scores. The system should decide the winner based on the score and update the wins and losses of each team. 3. Delete individual games: Each game should have a unique ID numb so that it can be deleted or otherwise specified at run-time. 4. Show standings: The system should be able to present a neatly ordered list of the teams according to their win-loss records from best to worst. This should display the teams' names, wins, losses, and winning percentage (rounded to three decimal places). The winning percentage is the number of wins divided by the total number of games. 5. Show all games: Display a listing of all recorded games. The listing should display the date of the game, as well as the visiting team and their score, followed by the home team and their score. 6. Show games by date: Display a listing of all games played on a specified date. The layout of the listing should be the same as #5 above. 7. Show games by team: Display a listing of all games that included a specified team. The layout of the listing should be the same as #5 above. 8. Export and import all league data: All data that is entered into the system should be able to get exported to a file and then re-imported later. The application must contain at least the following four classes, although you can add more if you think they are necessary.

Step by Step Solution

3.31 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

Below is a simplified consolebased Java application that implements the functionality you described for managing an amateur sports league The applicat... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Project Management The Managerial Process

Authors: Eric W Larson, Clifford F. Gray

8th Edition

1260570436, 978-1260570434

More Books

Students also viewed these Programming questions