Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Homework 4 - Roster Java 1 Description For this assignment we will use functions and the Collections Framework to emulate a database of baseball players.
Homework 4 - Roster Java 1 Description For this assignment we will use functions and the Collections Framework to emulate a database of baseball players. Specifications You will need to complete the following: 1. Create a new project and add a class Roster 2. The application will allow the user to manage a baseball team. Remember the following: a. b. C. d. DO NOT use Arrays You may use any of the classes in the Collections Framework. DO NOT assume the user will enter valid data DO NOT store the average, this should be a calculated value 3. Consider the sample run below (your output should match closely, it DOES NOT have to be a verbatim replica) Basebal1 Team Manager MENU OPTIONS 1Display lineup 2 Add player 3 Remove player Move playeE 5-Edit player position 6-Edit player stats 7Exit program POSITIONS C, 1B, 2B, 3B, SS, LF, CF, RF, P Menu option: 2 Name: Mike Position: C At bats: Hits: 0 Mike was added Menu option: 1 Player POS AB AVG 1 Joe 2 Tom 3 Ben 4 Mike 0.2 0.364 0.0 0.0 10 3B Menu option:6 Lineup number: 4 You selected Mike AB-0 H-0 At bats:4 Hits: 1 Mike was updated Menu option: 4 Current lineup number: 4 Mike was selected. New lineup number: 1 Mike was moved. Menu option: 7 Bye! 4. Make sure the positions are unique (meaning no more than 9 players on the team 5. Write methods as appropriate, consider the following methods... a. displayMenu(.) c. displayTable(... ); d. getString(; e. getlnteger 6. Do not forget the Javadoc
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