ava Programming challenge: a.) problem definition:  1.)The program should ask the user to enter employee name department code number of hours worked status code name employees’ position / employees’ position code sub-position code 2. )Create a program that will compute for the gross income of the employee by multiplying the number of hours worked into his rate per hour based on the employees’ position or sub-position identified in each department. 3.)To compute the total deductions by adding the percentage from BIR and Security Taxes based on his/her civil status And compute for the net income by subtracting the total deductions from the gross income. sample output att

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question
100%

Java Programming challenge:

a.) problem definition: 

1.)The program should ask the user to

    • enter employee name
    • department code
    • number of hours worked
    • status code name
    • employees’ position / employees’ position code
    • sub-position code

2. )Create a program that will compute for the gross income of the employee by multiplying the number of hours worked into his rate per hour based on the employees’ position or sub-position identified in each department.

3.)To compute the total deductions by adding the percentage from BIR and Security Taxes based on his/her civil status And compute for the net income by subtracting the total deductions from the gross income.

sample output attached:

please show java code, 

5. Programming Challenge:
The easiest way to find the net salary of employee is by first taking the values of
gross salary, income tax, provident fund and professional tax in the main function and|
directly use the below formula.
Net Salary = Gross Salary – Income Tax – Public Provident Fund – Security Tax
But to Create a program that would be compute salary of an employee based on the
information indicated in the table given below.
Sub-
Dept.
Position
Sub-
Rate Per
Dept.
Position
Position
Code
Code
Position
Hour
Code
Senior
011A
1000
Programmer
Junior
Programmer
011
011B
700
Programmer
System
Analyst
MIS
MIS
012A
1000
Analyst
012
Data
012B
800
Analyts
Advertiser
Staff
021
500
Marketing
MKT
022
400
Chief
031
600
Accounting
ACT
Cashier
032
400
STATUS
STATUS CODE
BIR TAX
SECURITY TAX
HEAD OF THE
HOF
10%
5%
FAMILY
SINGLE WITH
SWD
15%
10%
DEPENDENTS
SINGLE W/O
SOD
20%
15%
DEPENDENTS
Transcribed Image Text:5. Programming Challenge: The easiest way to find the net salary of employee is by first taking the values of gross salary, income tax, provident fund and professional tax in the main function and| directly use the below formula. Net Salary = Gross Salary – Income Tax – Public Provident Fund – Security Tax But to Create a program that would be compute salary of an employee based on the information indicated in the table given below. Sub- Dept. Position Sub- Rate Per Dept. Position Position Code Code Position Hour Code Senior 011A 1000 Programmer Junior Programmer 011 011B 700 Programmer System Analyst MIS MIS 012A 1000 Analyst 012 Data 012B 800 Analyts Advertiser Staff 021 500 Marketing MKT 022 400 Chief 031 600 Accounting ACT Cashier 032 400 STATUS STATUS CODE BIR TAX SECURITY TAX HEAD OF THE HOF 10% 5% FAMILY SINGLE WITH SWD 15% 10% DEPENDENTS SINGLE W/O SOD 20% 15% DEPENDENTS
Projects
Files
Services
Output - MyJavaPrograms (run) X
run:
Enter Eemployee name: enz
Enter Department code: mis
Enter Position code: 011
Enter Sub-position code: 01la
Position: Senior Programmer
Enter the number of hours worked: 50
Enter status code: hof
Gross salary is: 50000.0
Total deduction is: 7500.0
Net salary is : 42500.0
BUILD SUCCESSFUL (total time: 23 seconds)
Projects
Files
Services
Output - MyJavaPrograms (run) X
run:
Enter Employee name: ENZ
Enter Department code: MIS
Enter Position code: 012
Enter sub-position code: 012B
Position: Data Analyst
Enter the number of hours worked: 40
Enter status code: HOF
Gross salary is: 32000.0
Total deduction is: 4800.0
Net salary is : 27200.0
BUILD SUCCESSFUL (total time: 22 seconds)
会会
Transcribed Image Text:Projects Files Services Output - MyJavaPrograms (run) X run: Enter Eemployee name: enz Enter Department code: mis Enter Position code: 011 Enter Sub-position code: 01la Position: Senior Programmer Enter the number of hours worked: 50 Enter status code: hof Gross salary is: 50000.0 Total deduction is: 7500.0 Net salary is : 42500.0 BUILD SUCCESSFUL (total time: 23 seconds) Projects Files Services Output - MyJavaPrograms (run) X run: Enter Employee name: ENZ Enter Department code: MIS Enter Position code: 012 Enter sub-position code: 012B Position: Data Analyst Enter the number of hours worked: 40 Enter status code: HOF Gross salary is: 32000.0 Total deduction is: 4800.0 Net salary is : 27200.0 BUILD SUCCESSFUL (total time: 22 seconds) 会会
Expert Solution
steps

Step by step

Solved in 2 steps with 8 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr