Question: JAVA Main java data.tct Instructions from your teacher mport 2 mport java.io.File; java.util.Scanner; Create a program that reads from a file (data.txt) displays the following:

 JAVA Main java data.tct Instructions from your teacher mport 2 mport

JAVA

Main java data.tct Instructions from your teacher mport 2 mport java.io.File; java.util.Scanner; Create a program that reads from a file (data.txt) displays the following: 4-class Main( Spublic static void main(String[] args) throws Exception { ITO DO //create a scanner that reads from the text file NAME Catherine Ken Martin Tess SALES 23415.00 321.50 4384.75 595.74 COMMISSION 2341.50 32.15 438.48 359.57 //Use printf to print the header NOTE: the header specifiers wil1 be ALL STRINGS!! / /Name Column: 15 spaces wide, left justified //Sales column: 18 spaces wide, right justified //Commission column: 12 spaces wide, right justified //dont forget to include the newline character In //USE STRING LITERALS NAME", "SALES", and "COMMISSION 1e 12 13

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!