Page 57 - My Own Workbook for CSEC Information Technology Examinations
P. 57
My Own Workbook for CSEC® Information Technology Examinations
SIMPLE CONDITION WITH AN ALTERNATIVE ACTION: INCOME TAX
29. On the island of St. Luago, all citizens pay income tax at a rate of 25%. Each citizen is however allowed a tax free allowance of $1,000 per month (if their gross pay exceeds this amount). A citizen therefore pays tax on earnings greater than $1,000.
(a) Develop an algorithm which:
(i) sets the tax rate to 25%
(ii) accepts gross pay earned
(iii) computes the income tax payable
(iv) outputs the income tax payable
income tax payable = (gross pay – tax free allowance) * tax rate
(b) Implement the program using a programming language of your choice
.................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. .................................................................................................................................................................................................................. ..................................................................................................................................................................................................................
99
IT-book-edited-8,3x11,7.indd 102
9/11/18 7:25 PM
Copyrighted material. All rights reserved.
DO NOT COPY THIS PAGE DO NOT COPY THIS PAGE DO NOT COPY THIS PAGE