Take a screenshot of running the code and its output (in this case, employeeData.txt was created in notepad and saved in drive D) *employeeData - Notepad File Edit Format View Help Emily Johnson 45...


Take a screenshot of running the code and its output


(in this case, employeeData.txt was created in notepad and saved in drive D)


*employeeData - Notepad<br>File Edit Format View Help<br>Emily Johnson 45 15.0<br>

Extracted text: *employeeData - Notepad File Edit Format View Help Emily Johnson 45 15.0
import java.util.*;<br>import java.io.*;<br>public class April26 {<br>public static void main(String[] args)throws FileNotFoundException {<br>Scanner inFile= new Scanner(new FileReader(

Extracted text: import java.util.*; import java.io.*; public class April26 { public static void main(String[] args)throws FileNotFoundException { Scanner inFile= new Scanner(new FileReader("d:\\employeeData.txt")), String firstName; String lastName; double hoursWorked; double payRate; double wages; inFile.next(); lastName = inFile.next(); hoursWorked =inFile.nextDouble(); payRate= inFile.nextDouble(); payRate; firstName %3D wages = hoursWorked * System.out.println("Name: System.out. println("No. Hours Worked: System.out.println("Rate Per Hour: System.out.println("Salary: System.out.println(wages); inFile.close(); +lastName); +hoursWorked); +payRate); +firstName+" %3D +wages); } |}

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here