Question: In Java Formatting Output Design and create a Java application that reads this input file (Unformatted Information.txt) and displays the contents formatted in tabular fashion
In Java
Formatting Output
Design and create a Java application that reads this input file (Unformatted Information.txt) and displays the contents formatted in tabular fashion with the specified column headings (see picture below to see example of correct output).
A.First name: left aligned,10 characters
B.Last name: left aligned,21 characters
C.GPA: display 3 decimal places
D.GPA: scientific notation with 5 decimal places
E.Favorite movie: maximum 15 characters
F.2 spaces between each column
This is the what is contaned in Unformatted Information.txt:
Barney Rubble 56 3.4567 Year One Fred Flintstone 60 2.38475 The Land Before Time Wall E 125 4.99999 A Space Odyssey Anastasia Nicholaevna 89 3.9 From Russia with Love Jefferson Airplane 63 1.89 Woodstock John Doe 5 0.0357 The Lego Movie Baldasarre Smith 1 1.2345 Three Men and a Baby Vivienne Leigh 99 2.40 Gone with the Wind Ike Min 19 3.7712 Guardians of the Galaxy
This is how the expected output should look: 
First Name Last Name Age GPA GPA-sn Favorite Movie Rubble Flintstone Barney Fred Wall Anastasia Nicholaevna Jefferson Airplane John Baldasarre Smith Vivienne Leigh Ike 56 3.457 3.45670e+00 Year One 60 2.385 2.38475e+00 The Land Befor 125 5.000 4.99999et00 A Space Odysse 89 3.900 3.90000e+00 From Russia wi 63 1.890 1.89000e+00 Woodstoc]k 5 0.036 3.57000e-02 The Lego Movie 1 1.235 1.23450e+00 Three Men and 99 2.400 2.40000e+00 Gone with the 19 3.771 3.77120e+00 Guardians of t Doe Min
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
