+ 1

Please help solve

You found an exciting job for five weeks during school holidays. The job pays $15.50 per hour. Suppose that the total tax you pay on your school holiday job income is 15%. After paying the taxes, you spend 10% of your net income to buy new clothes and other accessories for the next school year and 1% to buy school supplies. After buying clothes and school supplies, you use 25% of the remaining money to buy savings bonds. Your parents buy additional savings bonds for you as follows: • If you do not spend any of your net income to buy savings bonds, then because you had school holiday job, your parents buy savings bonds for you in an amount equal to 1% of the money saved after paying taxes, and buying clothes, other accessories and school supplies. • 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 a savings bond, plus money equal to 1% of the money you save after paying taxes and buying clothes, other accessories and s

7th May 2020, 6:29 AM
Maanda Makushu
Maanda Makushu - avatar
4 Réponses
+ 1
Problem says take input for number of hour by loop because it may vary everyday.. So I would use loop like: for(int week=1;week<=5; week++) { cin>>week_hour; NumberOfHour+=week_hr; } cout<<"total number of hours worked: " <<NumberOfHour; Now you can calculate the taxes and expenditures : With total net income by cout<<NetIncome=NumberOfHour* PayRate; ... Hope it helps you..
7th May 2020, 9:30 AM
Jayakrishna 🇮🇳
+ 1
We will help *you* solve it, if you show us your attempt. So far, you only posted the task.
7th May 2020, 7:47 AM
HonFu
HonFu - avatar
+ 1
#include <iostream> #include <iomanip> Using namespace std; Int main() { double PayRate; double TotalTax = 0.15; double NetIncome; int NumberOfHours; cout<<fixed<<showpoint<<setprecision(2) cout<<"Enter PayRate"; cin>>PayRate; cout<<endl; cout<<"Enter hours worked:
quot;; cin>>NumberOfHours; cout<<endl; *for(NumberOfHours=0; ;NumberOfHours++)* cout<<"Net income:
quot;<< NetIncome = PayRate * NumberOfHours <<endl; cout<<"Net income after taxes:
quot;<<NetIncome = NetIncome - (NetIncome * TotalTax) <<endl; Been stuck here , if the question didn't say loop, I would have attempted to use if
7th May 2020, 8:12 AM
Maanda Makushu
Maanda Makushu - avatar
0
If you spend more than 25% of your net income to buy sayings 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. Source: Choshi, P. (2020) Write a program that prompts the user to enter the pay rate for an hour and the number of hours you worked each week. The program should use a loop to read numbers of hours you worked each week. The program then outputs the following: • Your income before and after taxes from your school holiday job • The money you spend on clothes and other accessories • The money you spend on school supplies • The money you spend to buy savings bonds • The money your parents spend to buy additional savings bonds for you
7th May 2020, 6:29 AM
Maanda Makushu
Maanda Makushu - avatar