Redo Exercise 8 to handle floating-point numbers. (Format your output to two decimal places.)
Redo Programming Exercise 18 of Chapter 2, taking into account that
your parents buy additional savings bonds for you as follows:a
a. If you do not spend any money to buy savings bonds, then because
you had a summer job, your parents buy savings bonds for you in
an amount equal to 1% of the money you save after paying taxes
and buying clothes, other accessories, and school supplies.
b. If you spend up to 25% of your net income to buy savings bonds,
your parents spend $0.25 for each dollar you spend to buy savings
bonds, plus money equal to 1% of the money you save after paying
taxes and buying clothes, other accessories, and school supplies.
c. If you spend more than 25% of your net income to buy savings
bonds, your parents spend $0.40 for each dollar you spend to buy
savings bonds, plus money equal to 2% of the money you save after
paying taxes and buying clothes, other accessories, and school
supplies.