Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

i just posted this question and i got 2 errors so please make sure to run it
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

How do consumers process and evaluate prices?

Answered: 1 week ago