Question
WRITE IN JAVA PLEASE! Take a file named athlete.txt. Each athlete contains the following data items: Name(String), Birth Year(int-4 digits), 40 Meter Dash Time (double)
WRITE IN JAVA PLEASE!
Take a file named athlete.txt.
Each athlete contains the following data items: Name(String), Birth Year(int-4 digits), 40 Meter Dash Time (double)
The program should read athlete.txt, and should create a athlete.ser file from the text file, athlete.txt.
Copy both the athlete.txt and athlete.ser file to the project folder, not the source folder
The program should read the athlete.ser serialized file and output the data on to the Console in the format shown below.
The spacing for the output is: Title(20), Year (8) and Runtime (10.2) Title and Year are left-justified, Runtime is right-justified.
Title Year Runtime aaaaaaaaaaa aaaa a.aa xxxxxxxx xxxx x.xx yyyyyyy yyyy y.yy
DO NOT JUST OUTPUT athlete.txt file using System.out.println().
Thank you!
The File:
Tom Banks,1999,4.30 Devin Booker,1996,4.52 Forest Gump,1994,4.37 Chris Wallace,1998,4.6 Rick Johnson,1998,4.4 Mac Filler,1992,4
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