Advertisement
mikhun

Pseduocode

May 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. Start
  2. Declares variables:
  3. Char employee Name
  4. Char address
  5. Char grade
  6. Char Gender
  7. Int employee id
  8. Int phone no
  9. String email
  10. float hours Worked
  11. float over time
  12. float basic salary
  13. float deduction
  14. float tax
  15. float loan
  16. float allowance
  17. float net salary
  18. Print: Employee bio data, Display employees, slip salary, display employee, and exit
  19. 1 If (add bio)
  20. Then print:(add bio),(modify),(delete),(exit)
  21. 1.1 If (add bio)
  22. Print: information that have to be answered
  23. Then return
  24. 1.2 If(modify)
  25. Print: enter the id which have to be modified
  26. If the id is available in the data store modify
  27. else
  28. ask again to enter the correct id no
  29. 1.3 If(delete)
  30. Print: enter the id which will be deleted
  31. If the id is stored in the data delete the employee information
  32. Else
  33. Ask again to enter the correct id no
  34. 2 if (display employees)
  35. Then print: the employees working in the company
  36. 3 if (salary slip)
  37. Print: enter the employee id
  38. Then enter the days worked in the month and overtime worked
  39. If home allowance is allowed
  40. Then HRA=(5*basic salary)/100
  41. If conveyance is allowed
  42. Then CA = (2 * basic salary) / 100
  43. DA = (5 * basic salary) / 100
  44. PF = (2 * basic salary) / 100
  45. LD = (10 * loan salary) / 100
  46. allowance = HRA + CA + DA
  47. deduction = PF + LD
  48. else
  49. basic salary = days * 30
  50. LD = (10 * loan) / 100
  51. Over time = hours * 10
  52. Home allowance = OT
  53. deduction = LD
  54. then
  55. net salary = (basic salary + home allowance + over time) - deduction
  56. 4 if( display individual)
  57. Print: enter the employee id to be searched
  58. Then display
  59. Else
  60. return
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement