Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Employees get paid time and a half for hours worked in excess of 40 hours. Write a Java program that calculates the employee's total salary:
Employees get paid time and a half for hours worked in excess of 40 hours. Write a Java program that calculates the employee's total salary:
1. Prompt the user to enter the salary of the employee.
2. Prompt the user to enter the number of hours the employee worked.
3. Calculate the total salary as follows: a. Employees receive regular salary for the first 40 hours worked. b. Employees receive salary * 1.5 for every hour worked over 40 hours.
4. Display the total salary of the employee.
Name your file as follows: lastName_firstInitial_Project#.java
Step 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