You found a programming summer job for five weeks. It pays, say R55.50 per hour. Suppose that the total tax you pay on your summer job income is 14%. After paying the taxes, you spend 10% of your net income to buy new clothes and other accessories for the next tertiary year and 0.75% to buy tertiary supplies. After buying clothes and tertiary supplies, you use 25% of the remaining money to buy savings bonds.
For each rand you spend to buy savings bonds, your parents spent R0.60 to buy additional savings bonds for you. Write a program that prompts the user to enter pay rate for an hour and the number of hours you worked each week. The program then outputs the following:
a. Your income before and after taxes from your summer job
b. The money you spend on clothes and other accessories.
c. The money you spend on school supplies.
d. The money you spend to buy savings bonds
e. The money your parents spend to buy additional savings bonds for you.
Comments
Leave a comment