0% found this document useful (0 votes)
5 views

Programming Project pc318

Uploaded by

tacankent315
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Programming Project pc318

Uploaded by

tacankent315
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Midterm Programming Project

Create a java application that would compute the payroll of an employee. The application will
add and search values in the database.

Details:
regular working hours is 120 hrs. If hours work exceeds to 120, excess is
overtime hours
basic = hours work x rate per hour
overtime = 1.5 of its rate per hour X overtime hours
gross = basic + overtime
deduction = wtax + sss + philhealth + pag-ibig
net income = gross income – deduction
rate per hour = rate per day/8
sss = 10% of gross income if gross income is greater than 10K, 8% of gross income
if gross income is greater than 5k, otherwise 5% of gross income.
wtax = 1. Weekly>>>(8,000)
Base=4,808 = 0.00
Excess= 3,192 x 15% = 478.80
Wtax= 478.80
2. Monthly>>>(30,000)
Base=20,833 = 0.00
Excess= 9,167 x 15% = 1,375.05
Wtax= 1,375.05
Otherwise>>>(2000)
Base=1,096 = 61.65
Excess= 904 x 20% = 180.8
Wtax= 242.45

philhealth = 500 if civil status is ‘S’, 300 if ‘M’, otherwise 400


pag-ibig = 1% of gross income if gross income is lesser than or equal to 1500,
otherwise 2% of gross income.
employment status rate per day
‘R’ 800
‘P’ 600
‘C’ 500
‘T’ 450
Otherwise 400
char a=charAt(0)

You might also like