Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Basic Java console output format, Console input, conditional execution, arithmetic expressions And please use the example john smith exactly thanks An employee is paid at

image text in transcribed Basic Java console output format, Console input, conditional execution, arithmetic expressions And please use the example john smith exactly thanks

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 Net Paycheck Calculator Employee's Name: John Smith Number of Hours Worked in a Week: 43 Number of Employee's Dependents: 3 Employee's name Number of Dependents Hours worked Overtime hours Gross Income State Tax withheld @ 5% Federal Tax Withheld @ 14% Worker and 2 Dependents' Insurance Additional Dependents' Insurance : John Smith :3 : 43 :3 : $727.02 : $36.35 : $101.78 : $80.00 : $25.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions