IT210 Appendix G Week3

# IT210 Appendix G Week3 - 17 tax = 1425(sal 8000.25 18 19...

This preview shows page 1. Sign up to view the full content.

Week 3 checkpoint 1 write "Enter Salary" 2 read sal 3 4 if (sal < 1500) then 5 tax = sal * .15 6 7 if (sal > 1499.99) AND (sal < 3000) then 8 tax = 225 + (sal - 1500) * .16 9 10 if (sal > 2999.99) AND (sal < 5000) then 11 tax = 465 + (sal - 3000) * .18 12 13 if (sal > 4999.99) AND (sal < 8000) then 14 tax = 825 + (sal - 5000) * .20 15 16 if (sal > 7999.99) AND (sal < 15000) then
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 17 tax = 1425 + (sal - 8000) * .25 18 19 write "The tax is" Tax Enter salary \$600 the tax is 90 Enter salary \$1500 the tax is 465 Enter salary \$3000 the tax is 1005 Enter salary \$5000 the tax is 1825 Enter salary \$8000 the tax is 3425 If you enter \$8000 as your salary, it will compute the tax as (1425) + (Salary *.25) and produces the tax as 3425....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online