Write a program that calculates and prints the monthly pay check for an employee. The net pay is calculated after taking the following deductions: Gross Salary Tax: 12% FNPF: 8.5% PAYE: 5.5% Fiji Care Tax: 2.65% Pension Plan: 4.25% Health Insurance: $65.00 Your program should ask the user to input the Pay Number [1 - 26], gross pay and the employee name [First Name & Last Name]. Your program should then perform calculation according to the deduction details given above. The output is to be displayed on screen as follows. Format your output to have two decimal places.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Can answer the task below?

Write a program that calculates and prints the monthly pay check for an employee. The net pay is
calculated after taking the following deductions:
Gross Salary Tax:
12%
FNPF:
8.5%
PAYE:
5.5%
Fiji Care Tax:
2.65%
Pension Plan:
4.25%
Health Insurance:
$65.00
Your program should ask the user to input the Pay Number [1 - 26], gross pay and the employee
name [First Name & Last Name]. Your program should then perform calculation according
to the deduction details given above. The output is to be displayed on screen as follows. Format your
output to have two decimal places.
A sample output for emplayee Michael Buadromo having the following inputs:
Enter the Pay Period Number [1 - 26]: 2
Enter Employee Gross Salary:
2885
Enter Employee First & Last Name:
Michael Buadromo
Pay Period Number:
02
Employee Name:
Buadromo
Michael
Gross Salary:
$2885
Deductions:
*********
*****
$
Gross Salary:
Gross Salary Tax:
2885.00
346.20
FNPF:
245.23
PAYE:
158.68
Fiji Care Tax:
76.45
Pension Plan:
122.61
Health Insurance:
$
65.00
Total Deduction:
1014.17
Net Pay:
YTD Gross Salary:
$1870.83
$5770.00
Note that the first column is left-justified, and the right column [Deductions table] is right justified.
Transcribed Image Text:Write a program that calculates and prints the monthly pay check for an employee. The net pay is calculated after taking the following deductions: Gross Salary Tax: 12% FNPF: 8.5% PAYE: 5.5% Fiji Care Tax: 2.65% Pension Plan: 4.25% Health Insurance: $65.00 Your program should ask the user to input the Pay Number [1 - 26], gross pay and the employee name [First Name & Last Name]. Your program should then perform calculation according to the deduction details given above. The output is to be displayed on screen as follows. Format your output to have two decimal places. A sample output for emplayee Michael Buadromo having the following inputs: Enter the Pay Period Number [1 - 26]: 2 Enter Employee Gross Salary: 2885 Enter Employee First & Last Name: Michael Buadromo Pay Period Number: 02 Employee Name: Buadromo Michael Gross Salary: $2885 Deductions: ********* ***** $ Gross Salary: Gross Salary Tax: 2885.00 346.20 FNPF: 245.23 PAYE: 158.68 Fiji Care Tax: 76.45 Pension Plan: 122.61 Health Insurance: $ 65.00 Total Deduction: 1014.17 Net Pay: YTD Gross Salary: $1870.83 $5770.00 Note that the first column is left-justified, and the right column [Deductions table] is right justified.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY