Answered You can hire a professional tutor to get the answer.
I am writing a Java application that prompts a user for a fist name and a last name, and then asks if a user is a company's employee.
Hello,
Can you please assist me.... I am writing a Java application that prompts a user for a fist name and a last name, and then asks if a user is a company's employee. If positive, I have to prompt for an hourly pay rate and hours worked. After that I have to compute the gross pay (hours times rate), withholding tax, and net pay (gross pay minus withholding tax). The withholding tax should be computed as percentage of gross pay based on the following scale.
Gross Pay: Withholding Percentage:
Then I have to display the user's name (first and last), hourly rate, hours worked, withholding tax percentage, withholding tax and gross pay.
Then I will have to ask a user if she/he wants to add a medical insurance. If positive, I will have to offer three choice (each of them can be added independently from others) : 1) medical insurance at $50; 2) dental insurance at $25; 3) long term disability at $10. Then I have to deduct the selected insurance(s) from the gross pay. If the deductions exceed the gross pay, display an error message, otherwise display the pay amount to be sent to a user.
When a user is not an employee - display the proper message on that and terminate the application.
I will have to use logical AND and OR operators when designing the logic of the application.
Note: I can also use the JOptionPane input dialog instead of the Scanner class.