Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

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. What items are typically included in the job description?

Answered: 1 week ago

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago