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
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Java
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F12dc93d0-8984-4951-b79c-207722ddacf2%2F74e0c220-d54b-4a06-9ddf-340d158139e6%2F8xgz1wl_processed.png&w=3840&q=75)
![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)
会会](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F12dc93d0-8984-4951-b79c-207722ddacf2%2F74e0c220-d54b-4a06-9ddf-340d158139e6%2Fpxww3zg_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 8 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)