Home / Expert Answers / Computer Science / write-a-program-to-read-in-the-first-name-last-name-hours-worked-over-time-hours-and-hourly-pay-r-pa168

(Solved): Write a program to read in the first name, last name, hours worked, over time hours and hourly pay r ...



Write a program to read in the first name, last name, hours worked, over time hours and hourly pay rate and computes and displays their regular pay, overtime pay, gross pay, federal tax deduction (20% of the gross pay), state tax deduction ( 5% of the gross pay) and the net pay. To calculate gross pay, any hours over 40 (overtime) should be calculated at time and a half.  The report should  print out

Name:

Hours Worked:

Hourly Paid:

The gross salary is :

Federal Tax:

State Tax:

Net Pay:

 

Can you include making the classes and all that. I wrote my code but it gives me tons of errors.



We have an Answer from Expert

View Expert Answer

Expert Answer


The approach of the program is to take the input from the user as mentioned in the problem. Then calculate the gross pay, taxes. Then subtract the tax
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe