Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE IN JAVA PLEASE!!!! Take a file named athlete.txt. Each Movie 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 Movie 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 .txt and .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

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago