(Payroll) Write a program that reads the following information and prints payroll statements in show message dialog box.
These are the inputs:
Employees Full Name (e.g. Mohammed Al Zakwani)
Numbers of Hours worked in a week (e.g. 40 hours)
Hourly Pay Rate (e.g. 6.75)
Federal Tax withholding rate (e.g. 20%)
State Tax withholding rate (e.g. 9%)
You should calculate:
Gross Pay = hourly pay rate * numbers of hours worked in a week.
Federal Tax withholding = Federal Tax withholding rate * gross pay
State Tax withholding = State Tax withholding rate * gross pay
Total Deductions = Federal Tax withholding + State Tax withholding
Net Pay = Gross Pay + Total Deductions
Output should be
Employees Full Name: Mohammed Al Zakwani
Numbers of Hours worked in a week: 40 hours
Hourly Pay Rate: $ 6.75
Gross Pay: $270
Deductions:
Federal Tax withholding (20%): $54
State Tax withholding rate (9%) : $24.3
Total Deductions: $78.3
Net Pay: $191.7