input: Employee name, employee code, days worked
output: Employee name, gross pay, total deduction, net pay
where: gross pay = days worked * rate
total deduction = sss + tax
sss = 10% of gross pay
tax = 15% of gross pay
net pay = gross pay - total deduction
rate table: employee code rate
1 530
2 550
3 570
methods:
main - calls employee method
employee - performs the input requirements, calls salary method, performs recursion for Try Again
salary - performs all computations, calls method output
output - displays the required outputs
code - validates the input code (1-3 only)
days - validates the input days worked (0-12 only)
Walang komento:
Mag-post ng isang Komento