Question: Objective: Basic Java console output format, Console input, conditional execution, arithmetic expressions. Submission: Create only one.java file with main method. Submit (1) the.java file. (2)

 Objective: Basic Java console output format, Console input, conditional execution, arithmetic

Objective: Basic Java console output format, Console input, conditional execution, arithmetic expressions. Submission: Create only one.java file with main method. Submit (1) the.java file. (2) Screenshots of outputs of the test cases given. Do not submit .class file or the entire project. Note: You might need conditional statements, modulus operator for integers. Put code within the main function. An employee is paid at a rate of $17.25 per hour for up to 40 regular hours worked in a week. If the employee works more than 40 hours, it is considered overtime. Any hours over 40 hours but less than or equal to 60 are paid at the overtime rate ($12.34 per hour). Any hours over 60 hours but less than equal to 80 hours are paid at the overtime rate ($14.34 per hour). Any hours over 80 hours are paid at the overtime rate ($16.00 per hour). From the worker's gross pay, 14% is withheld for federal income tax, 5% is withheld for state income tax. $80 is withheld to cover the insurance of the worker and 2 dependents. If the worker has more than 2 dependents, then an additional $25 is withheld per dependent for insurance. Write a Java program that will read in the name of the employee, number of hours worked in a week and the number of dependents as input. The program should then output the worker's name, number of dependents, gross pay, each withholding amount, and the net take-home pay for the week. Note that the ONLY INPUTS the user provides are - The employee's name. - The number of hours worked in the week. - The number of dependents. Below are four Sample 1/0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!