Question: Java, Files and Formatted Printing Write a Java class to read in data for a library catalogue Your program should read all input data from

Java, Files and Formatted Printing

Java, Files and Formatted Printing Write a Java class to read in

Write a Java class to read in data for a library catalogue Your program should read all input data from a file, and send all output to a different file The input file has the following format. The first line contains a single integer representing the number of books that are contained in the file. (This value is sometimes referred to as a header value.) Following that, each book has four lines of data. The first line is the book title, the second is the author, the third is the year, and the fourth is the price Your program should print the data to a file in table format as shown below Sample Data File 2 Homer Price McCloskey, Robert 1943 6.99 World Series Tunis, John R. 1941 7.50 Sample Output File Title Homer Price World Series Author Year McCloskey, Robert Tunis, John R 1943 1941 Price 6.99 7.50

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!