Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.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 13Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started