@@ -0,0 +1,1060 @@
+import java.util.Scanner; // program uses Scanner%0Apublic class SalaryCalculator %7B%0A%09// begin execution%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09// create Scanner object%0A%09%09Scanner input = new Scanner(System.in);%0A%09%09%0A%09%09String name;%0A%09%09int counter = 1;%0A%09%09double hours;%0A%09%09double salary;%0A%09%09double grossPay = 0;%0A%09%09%0A%09%09// create while loop%0A%09%09while (counter %3C= 3) %7B%0A%09%09%09// prompt and obtain user input%0A%09%09%09System.out.printf(%22Please enter employee name: %22);%0A%09%09%09name = input.nextLine();%0A%09%09%09System.out.printf(%22Please enter hours worked: %22);%0A%09%09%09hours = input.nextDouble();%0A%09%09%09System.out.printf(%22Please enter hourly wage: $%22);%0A%09%09%09salary = input.nextDouble();%0A%09%09%09%0A%09%09%09if (hours %3C= 40) %7B%0A%09%09%09%09grossPay = salary * hours;%0A%09%09%09%7D else %7B%0A%09%09%09%09grossPay = salary * (hours + ((hours - 40)/2));%0A%09%09%09%7D%0A%09%09%09System.out.printf(%22Employee name: %25s%5Cn%22, name);%0A%09%09%09System.out.printf(%22Hours worked: %25.2f%5Cn%22, hours);%0A%09%09%09System.out.printf(%22Hourly wage: $%25.2f%5Cn%22, salary);%0A%09%09%09System.out.printf(%22Net pay: $%25.2f%5Cn%22, grossPay);%0A%09%09%09counter++;%0A%09%09%7D // end while loop%09%0A%09%7D // end main%0A%7D // end SalaryCalculator%0A

Create SalaryCalculaor.java