Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4. You found an exciting summer job for five weeks. It pays, $15.50 per hour. Su

ID: 3629604 • Letter: 4

Question


4. You found an exciting summer job for five weeks. It pays, $15.50 per hour. Suppose that the total tax you pay on your summer job income is 14% (we wish). After paying the taxes you spend 10% on 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. Create a program that:
a. Prompts the user to enter the total amount summer hours worked
b. displays the money you spend on clothes and other accessories
c. displays the money you spend on school supplies
d. displays the money you spend to buy savings bonds

Explanation / Answer

please rate - thanks



#include <stdio.h>
#include <conio.h>
int main()
{double pay;
double tax=14/100.;
double clothes=10/100.;
double supplies=1/100.;
double bonds=25/100.;
double income,taxes,clothesetc,school,savingsbonds;
int hours;
printf("Enter your salary: ");
scanf("%lf",&pay);
printf("Enter hours worked: ");
scanf("%d",&hours);
income=hours*pay;
printf("income before taxes: $%.2f ",income);
taxes=income*tax;
income-=taxes;
printf("income after taxes: $%.2f ",income);
clothesetc=income*clothes;
printf("The money you spend on clothes and other accessories $%.2f ",clothesetc);
income-=clothesetc;
school=income*supplies;
income-=school;
printf("The money you spend on school supplies $%.2f ",school);
savingsbonds=income*bonds;
printf("The money you spend on saving bonds $%.2f ",savingsbonds);
getch();
return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote