Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Written in JAVA A company runs a small factory. The company employs workers who are paid one of three hourly rates depending on skill level:

Written in JAVA

A company runs a small factory. The company employs workers who are paid one of three hourly rates depending on skill level: Skill Level 1 - $17.00 hourly pay rate, Skill Level 2 - $$20.00 hourly pay rate, Skill Level 3 - $22.00 hourly pay rate

Each factory worker might work any number of hours per week; any hours over 40 are paid at one and one-half the usual rate. In addition, workers in skill levels 2 and 3 can elect the following insurance options: Option 1 Medical insurance, $32.50 weekly cost to employee, Option 2 Dental insurance, $20.00 weekly cost to employee, Option 3 Long-term disability insurance, $10.00 weekly cost to employee

Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross pay. Write an interactive Java payroll application that calculates the net pay for a factory worker. The program prompts the user for skill level and hours worked, as well as appropriate insurance and retirement options for the employees skill level category. The application displays: (1) the hours worked, (2) the hourly pay rate, (3) the regular pay for 40 hours, (4) the overtime pay, (5) the total of regular and overtime pay, and (6) the total itemized deductions. If the deductions exceed the gross pay, display an error message; otherwise , calculate and display (7) the net pay after all the deductions have been subtracted from the gross.

Save the file as Pay.java.

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

Question

2. In what way can we say that method affects the result we get?

Answered: 1 week ago

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago

Question

Answered: 1 week ago

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago