n that will determine the gross pay for each of three employees using an array, a loop, the if-else statement, and the JOptionPane dialog box for input. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee: employee name, number of hours each employee worked, and the hourly rate for each employee. Your program should determine the gross pay for each employee and store it in
Develop a Java application that will determine the gross pay for each of three employees using an array, a loop, the if-else statement, and the JOptionPane dialog box for input. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee: employee name, number of hours each employee worked, and the hourly rate for each employee. Your program should determine the gross pay for each employee and store it into an array. It also display each employee’s gross pay with his/her name as output. Use input dialogs to input the data.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images