function annualSalary(someYear, hourlyPay)
const hoursPerDay = 8
annualSalary = 0
for i = 1 to 12
annualSalary = annualSalary + WorkingDays(someYear, i) * hoursPerDay * hourlyPay
next
end function
function monthlySalary(someYear, someMonth, hourlyPay)
const hoursPerDay = 8
monthlySalary = 0
monthlySalary = monthlySalary + WorkingDays(someYear, someMonth) * hoursPerDay * hourlyPay
end function
View ASP implementation on Snipplr
No comments:
Post a Comment