Redo Programming Exercise 21 of Chapter 2, taking into accountthat your parents
ID: 3614239 • Letter: R
Question
Redo Programming Exercise 21 of Chapter 2, taking into accountthat your parents buy additional savings bonds for you asfollows: a. If you don't spend any money to buy savings bonds, thenbecause you had a summer job, your parents buy savings bonds foryou in an amount equal to 1% of the money you save after payingtaxes, buying clothes & other accesories, & schoolsupplies. b. If you spend up to 25% of your net income to buy savingsbonds, your parents spend $0.25 for each dollar you spend to buysavings bonds, plus money equal to 1% of the money you save afterpaying taxes, buying clothes & other accessories, & schoolsupplies. c. If you spend more than 25% of your net income to buysavings bonds, your parents spend $0.40 for each dollar you spendto buy savings bonds, plus money equal to 2% of the money you saveafter paying taxes, buying clothes & other accessories, &school supplies. I have to run the program 3 times and keep all the inputvalues the same, except changing the amount of money spent onsavings bonds. Redo Programming Exercise 21 of Chapter 2, taking into accountthat your parents buy additional savings bonds for you asfollows: a. If you don't spend any money to buy savings bonds, thenbecause you had a summer job, your parents buy savings bonds foryou in an amount equal to 1% of the money you save after payingtaxes, buying clothes & other accesories, & schoolsupplies. b. If you spend up to 25% of your net income to buy savingsbonds, your parents spend $0.25 for each dollar you spend to buysavings bonds, plus money equal to 1% of the money you save afterpaying taxes, buying clothes & other accessories, & schoolsupplies. c. If you spend more than 25% of your net income to buysavings bonds, your parents spend $0.40 for each dollar you spendto buy savings bonds, plus money equal to 2% of the money you saveafter paying taxes, buying clothes & other accessories, &school supplies. I have to run the program 3 times and keep all the inputvalues the same, except changing the amount of money spent onsavings bonds.Explanation / Answer
please rate - thanks please rate - thanks #include #include using namespace std; int main() {double tax=0.14,clothes=.1,school=.01,parents,bonds; double pay,net,hrs,tothrs,totpay=0,wks,saved; double clothesc,schoolc,bondsc,parentsc,expenses; coutpay; coutwks; for(int i=1;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.