Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Java, I need some help writing the code for this output. The data also has to be stored in a binary file called data.dat.
Using Java, I need some help writing the code for this output. The data also has to be stored in a binary file called data.dat.
Welcome! This program keeps track of statistics related to baseketball players. Read in 1 players. Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 1 What is the player's first name? James What is the player's last name? Harden What position does the player play: (C)enter, (F)orward or (G)uard? A Error: Enter C for center, F for forward, or G for guard G How many points does the player have? 36 How many rebounds does the player have? 6 How many blocks does the player have? 1 How many assists does the player have? 7 Added. Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 6 Error: you must enter a number between 1 and 5. What would you like to do? 1 What is the player's first name? Anthony What is the player's last name? Davis What position does the player play: (C)enter, (F)orward or (G)uard? C How many points does the player have? 26 How many rebounds does the player have? 9 How many blocks does the player have? 3 How many assists does the player have? 3 Added. Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 4 Points: 74 Rebounds: 27 Blocks: 4 Assists: 10 Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 3 What is the player's first name? Kyrie What is the player's last name? Irving That player was not found. Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 3 What is the player's first name? Anthony What is the player's last name? Davis Davis, Anthony(C): 26 points, 9 rebounds, 3 blocks, 3 assists Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 2 What is the player's first name? Anthony What is the player's last name? Davis Deleted. Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 4 Points: 48 Rebounds: 18 Blocks: 1 Assists: 7 Menu Options: 1. Add a player 2. Remove a player 3. Search for a player 4. Display total statistics for all players 5. Quit What would you like to do? 5 Goodbye!
***please let me know what information is needed!!!***
"Your goal for this project is to create a software application that allows the user to track an inventory of some sort. 1. You must store all the. data in a binary data file. please use the file bame "data.dat" with no directory modifiers. 2. Your program should use exceptions for when a user emters a wrong input." THIS IS A SAMPLE OUTPUT BUT I NEED TO BE ABLE TO SEE THE CODE TO DEVELOP IT!
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