Page 54 - My Own Workbook for CSEC Information Technology Examinations
P. 54

Program Implementation SECTION 8 SEQUENCE: TAX AND INTEGER DIVISION (DIV)
26. ClearChoice Cellular charges customer $0.25 to send a text message. They sell $10, $20 and $50 phone cards. All phone cards attract 20% tax.
(a) Develop an algorithm which accepts the price of a phone card and computes and print the price of the phone card after tax as well as the number of text messages that may be sent.
(b) Validate your algorithm using the three phone card prices.
(c) Implement the program using a programming language of your choice.
..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ..................................................................................................................................................................................................... ...................................................................................................................................................................................................
Copyrighted material. All rights reserved.
96
IT-book-edited-8,3x11,7.indd 99 9/11/18 7:25 PM
DO NOT COPY THIS PAGE DO NOT COPY THIS PAGE DO NOT COPY THIS PAGE


































































































   52   53   54   55   56