this structured pseudocode should described how my paycheck is calculated. is got to have at least two decisions.
input hourlyPayRate
input hoursWorked
input percentageGrossSalaryWithheld
if an employee an has worked over 40 hours then
pay him time and have for hours worked over 40
else
paying him regular time
endif
if a raise has been giving then
increased withholdingAmount
else
let grossPay = hourlyPay * hoursWorked
let withholdingAmount = grossPay * percentageGrossSalaryWithheld
let netPay = withholdingAmount - grossPay
endif
stop
2007-09-07
06:31:19
·
3 answers
·
asked by
caleb
1
in
Computers & Internet
➔ Programming & Design