Question: In Java Formatting Output 1.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

1.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 example below).

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

example of how it should look:

*This is what is inside 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 

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!