We have already learned how to calculate gross pay.The formulas are:
For hours <= 40 gross = rate * hours For hours > 40 gross = rate * 40 + 1.5 * rate * (hours - 40)
Write a program in Scheme that uses the previously defined program and print one of three messages:
| Gross Pay | MessageInches |
|---|---|
| <= 150 | no-tax |
| <= 250 | low-tax |
| > 250 | high-tax |
You should type in the interactions windows
(fed-tax 40 10)and get a response
'High-tax