Question: Assignment # 2 ( 3 . 7 5 % Mark ) Posted Date: Sunday February 1 1 , 2 0 2 4 Due Date: Thursday

Assignment # 2(3.75% Mark)
Posted Date: Sunday February 11,2024
Due Date: Thursday February 15,2024;11:59 PM
Late submissions: 10% penalty per day up to 3 days until February 18,11:59PM, then mark of zero applies
Condition: Solution should only use material covered in the course up to and including Module 6(Methods)
Write a program that collects information about individual employee of a company. The information includes full
name, number of hours worked, and payrate. Then based on tax rates calculates total deduction and the net pay to the
personnel.
Below is a sample run of the program displaying information collected and output of the program.
Write the program and use the data set used in the sample run to test the program and display numerical values with
2 decimal points accuracy.
Hint:
To produce the final output values for the Total tax deductions and Net Pay a method is used with the following
header: public static void printDeductions(double totalDeduction, double netPay)
The output of the method is:
Total tax deductions: $808.28
Net Pay: $1436.95
As it is displayed below under the Deductions section of the Sample run of the program.
Sample run using selected data set values:
Enter employee's name: George J. Smith
Enter number of hours worked in a week: 39
Enter hourly pay rate: 57.57
Enter government income tax rate (e.g.,0.21): 0.23
Enter provincial income tax rate (e.g.,0.12): 0.13
Results For:
Employee Name: George J. Smith
Hours Worked: 39.00
Pay Rate: $57.57
Gross Pay: $2245.23
Deductions :
Government income tax amount based on 23.08 tax rate: $516.40
Provincial income tax amount based on 138 tax rate: $291.88
Total tax deductions: $808.28
Net Pay: $1436.95
 Assignment # 2(3.75% Mark) Posted Date: Sunday February 11,2024 Due Date:

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!