Question: Write a java program that consists of a class named ExerciseI 1 Part 1 with the method main that does the following: a . Read

Write a java program that consists of a class named ExerciseI1Part1 with the method main that does the
following:
a. Read the first name, last name, ID number, the pay rate, and the number of hours worked by an employee.
b. Compute the gross pay (hours time the pay rate)
c. Compute the tax deduction (20% of the gross pay)
d. Compute the net pay (gross pay minus tax deduction).
e. Print the results using formatted output as follows:
Name: Mark, peter
Hours: 35
Pay Rate: $10.0
Gross Pay: $350.00
Tax Deduction: $70.00
Net Pay: $280.00

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 Programming Questions!