Using Java Language use Nested IF PAYROLL SYSTEM Write a program that would compute the salary of an employee based on the information indicated on the table given below. The program should ask the user to enter employee name, status code, department code, position code, and number of hours worked. Then compute for the gross income of the employee by multiplying the number of hours worked into his rate per hour based on the employee’s position identified in each department. Then compute for the total deductions by adding the percentage from BIR and Security taxes based on his civil status. Finally, compute for the net income by subtracting the total deductions from the gross income.

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

Using Java Language use Nested IF

PAYROLL SYSTEM

Write a program that would compute the salary of an employee based on the information indicated on the
table given below. The program should ask the user to enter employee name, status code, department
code, position code, and number of hours worked. Then compute for the gross income of the employee
by multiplying the number of hours worked into his rate per hour based on the employee’s position identified
in each department. Then compute for the total deductions by adding the percentage from BIR and Security
taxes based on his civil status. Finally, compute for the net income by subtracting the total deductions from
the gross income.

STATUS CODE
STATUS
BIR TAX
SECURITY TAX
HOF
HEAD OF THE FAMILY
10%
5%
SWD
SINGLE WITH
15%
10%
DEPENDENTS
SOD
SINGLE WITHOUT
20%
15%
DEPENDENTS
Deductions Table
Transcribed Image Text:STATUS CODE STATUS BIR TAX SECURITY TAX HOF HEAD OF THE FAMILY 10% 5% SWD SINGLE WITH 15% 10% DEPENDENTS SOD SINGLE WITHOUT 20% 15% DEPENDENTS Deductions Table
DEPARTMENT
CODE
POSITION
DEPARTMENT
POSITION
RATE PER HOUR
CODE
MIS
MIS
11
Programmer
1000
12
Analyst
900
MKT
MARKETING
21
Advertiser
400
22
Staff
350
АСT
ACCOUNTING
31
Chief
550
32
Cashier
450
Transcribed Image Text:DEPARTMENT CODE POSITION DEPARTMENT POSITION RATE PER HOUR CODE MIS MIS 11 Programmer 1000 12 Analyst 900 MKT MARKETING 21 Advertiser 400 22 Staff 350 АСT ACCOUNTING 31 Chief 550 32 Cashier 450
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
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