Write Java program(s) to do the following: 1) Write the data from books.txt as a Serialized file called books.ser to the local Eclipse directory(same as books.txt). 2) Read the books.ser serialized file and output the data on to the Console in the format shown below.

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter2: Hardware And Software
Section: Chapter Questions
Problem 2PSE
icon
Related questions
Question

COULD YOU INCLUDE SNAPSHOT OF THE CODE PLEASE

Write Java program(s) to do the following:
1) Write the data from books.txt as a Serialized file called books.ser to the local Eclipse directory(same as books.txt).
2) Read the books.ser serialized file and output the data on to the Console in the format shown below.

NOTE: DO NOT just write out the data from books.txt using System.out.println().

You MUST create the books.ser AND READ the data from the books.ser file and output the data.
We will check that you are creating the SER file and READING that file.

The spacing for the output is: Title(20), Author(20), Year (8) and Price (10.2)
Title and Year are left-justified, Runtime is right-justified.
(You can use your own text file to test your program)

Sample output:

Title                     Author                   Year           Price   
aaaaaaaaaaa        bbbbbbbbbbb         cccc         ddd.dd
......                           ......             .....
......   ......             .....
xxxxxxxx              sssssssssss        xxxx         xxx.xx
yyyyyyy               nnnnnnnnnnnn       yyyy         yyy.yy

books.txt - Notepad
File Edit Format View Help
Java Programming, Deitel, 2016,68.75
Python Programming, Gaddis, 2018,78.56
Data Analytics, Norman, 2017,89.56
Block Chain Development, Wilson, 2019,87.45
Web Development, Brown, 2018,98.98
Transcribed Image Text:books.txt - Notepad File Edit Format View Help Java Programming, Deitel, 2016,68.75 Python Programming, Gaddis, 2018,78.56 Data Analytics, Norman, 2017,89.56 Block Chain Development, Wilson, 2019,87.45 Web Development, Brown, 2018,98.98
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 5 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning