Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start
- Declares variables:
- Char employee Name
- Char address
- Char grade
- Char Gender
- Int employee id
- Int phone no
- String email
- float hours Worked
- float over time
- float basic salary
- float deduction
- float tax
- float loan
- float allowance
- float net salary
- Print: Employee bio data, Display employees, slip salary, display employee, and exit
- 1 If (add bio)
- Then print:(add bio),(modify),(delete),(exit)
- 1.1 If (add bio)
- Print: information that have to be answered
- Then return
- 1.2 If(modify)
- Print: enter the id which have to be modified
- If the id is available in the data store modify
- else
- ask again to enter the correct id no
- 1.3 If(delete)
- Print: enter the id which will be deleted
- If the id is stored in the data delete the employee information
- Else
- Ask again to enter the correct id no
- 2 if (display employees)
- Then print: the employees working in the company
- 3 if (salary slip)
- Print: enter the employee id
- Then enter the days worked in the month and overtime worked
- If home allowance is allowed
- Then HRA=(5*basic salary)/100
- If conveyance is allowed
- Then CA = (2 * basic salary) / 100
- DA = (5 * basic salary) / 100
- PF = (2 * basic salary) / 100
- LD = (10 * loan salary) / 100
- allowance = HRA + CA + DA
- deduction = PF + LD
- else
- basic salary = days * 30
- LD = (10 * loan) / 100
- Over time = hours * 10
- Home allowance = OT
- deduction = LD
- then
- net salary = (basic salary + home allowance + over time) - deduction
- 4 if( display individual)
- Print: enter the employee id to be searched
- Then display
- Else
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement