Question: JAVA Using dialog boxes develop an application program that will determine the gross pay for each of several employees ( use while or for loops
JAVA
Using dialog boxes develop an application program that will determine the gross pay for each of several employees use "while or for loops" and input at least two or more employees ask the user how many employees to input and use the input as your loop termination counter
The company pays "straight time" for the first hours worked by each employee and pays "timeandahalf" for all hours worked in excess of hours. Your program should ask the user to input the full name, SSN number, hours worked and the rate per hour. Create two m ethods. One method will calculate the gross pay and returns the amount computed, and the other method will display the result of the calculation. Below are the two
method headers:
public static double computePayint hrs double rate
public static void displayPayString fullname, double hoursWorked, double grossPay
Display the output of each employees full name, hours worked and gross payments inside an output box using JOptionPane method.
Note: Please format output by rounding.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
