Question: i just posted this question and i got 2 errors so please make sure to run it 4.20 (Salary Calculator) Develop a Java application that

4.20 (Salary Calculator) Develop a Java application that determines the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40. You're given a list of the employees, their number of hours worked last week and their hourly rates. Your program should input this informa- tion for each employee, then determine and display the employee's gross pay. Use class Scanner to input the data. SHARES Elle Edit View Build Project Settings Tools Window Help ORO NEED MAORI All Files - Sort By Name - class SalaryCalculator public static void main(String[] args) { scanner new Scanner(System.in); /Users/ellyasobhy for (int - 1; IC3 i++) { System.out.println("Enter the information for Employee . . . ) Applications System.out.println("Number of hours worked last week:"); Desktop int employeeHours - Sc.nextInt(); Documents System.out.println("Hourly rate :"); Downloads float employeeRate -se.nextFloat() hotger float grossPay - (employeeHours > 40) 7 (40.employee Rate) + (float) (employee Hours System.out.println("Gross Pay for Employee +I. $ + grossPay); Movies Music Pictures Public Ubrary ) ) ) SalaryCalculator java: Compile Messages GRASP Messages Run 1/0 Interactions Stop Clear GRASP exec Java - SalaryCaleulator.java salaryCalculator.avar rrors cannot find symbol scanner se new Scanner(System.in) Copy symboli class scanner locations class SalaryCalculator SalaryCalculator.java:3: error: cannot find symbol scanner SC-new Scanner(System.in); symbol class Scanner location class SalaryCalculator BEROES GRASP wedge: exit code for process is 1. GRASP: Operation complete. Browse Find Debug Workbench BOTE Line:3 Col:16 Code:115 Top:1 DVS ILLIG
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
