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

Programming Project

The program asks the user to input an employee's number, hours worked, employment status, and civil status. It then displays this information along with the employee's rate per hour, gross income, SSS, PhilHealth, and Pag-IBIG contributions, total deductions, and net income. Based on the employment status, it calculates the rate per day and hour. Gross income equals basic pay plus overtime pay. Deductions include SSS, PhilHealth, and Pag-IBIG based on percentages of gross income. The program prompts the user to compute another employee's information and continuously runs until the user enters 'n'.

Uploaded by

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

Programming Project

The program asks the user to input an employee's number, hours worked, employment status, and civil status. It then displays this information along with the employee's rate per hour, gross income, SSS, PhilHealth, and Pag-IBIG contributions, total deductions, and net income. Based on the employment status, it calculates the rate per day and hour. Gross income equals basic pay plus overtime pay. Deductions include SSS, PhilHealth, and Pag-IBIG based on percentages of gross income. The program prompts the user to compute another employee's information and continuously runs until the user enters 'n'.

Uploaded by

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

Programming Project

Create a program that compute the net income of an employee. The program would:

1. Ask the employee number, hours work, employment status, civil status.
2. Display the employee number, hours work, employment status, civil status, rate per hour,
gross income, sss, philhealth, pagibig, Total deduction and net income.

gross income = basic + overtime

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

deduction = 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.

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

pag-ibig = 5% of gross income if gross income is greater than 10K, 3% of gross income if gross income is
greater than 5k, otherwise 2% of gross income.

employment status rate per day

‘R’ 800

‘P’ 600

‘C’ 500

‘T’ 450

Otherwise 400
Sample Output

Enter Employee Number:

Enter Hours Work (per hour):

Enter Employment Status:

Enter Civil Status:

Employee Number:

Hours Work:

Employment Status:

Civil Status:

Rate per Hour:

Gross income:

SSS:

Philhealth:

Pag-ibig:

Total deduction:

net income:

Do you want to compute another one?( ):

*Reminders*

*Program will not exit


unless you press n.
*Program will compute
another net income if
answer is y, it will go back
to the first input until the
display of net income.
*You can use different
looping structure.
*Copy the code of the running program you created then paste it in a document file(.doc,.docx).This
file is use for uploading of your project.

*No more writing of code and picture.


*Please do not copy project from your classmate, I will know the original file of the uploaded
documents. The document you send will register the original author of the original file. That
is why I used document file (word file) coz it will register the name of the original file and
would determine if the file is copy and paste from another document.
*COPIED FILE (WORD DOCUMENT) WOULD MEAN 0 of your project score.(author of the file
and the copied file)

You might also like