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

#include<iostream> using namespace std; const double TAXRATE=0.14; int main() {

ID: 3613600 • Letter: #

Question

#include<iostream>
using namespace std;

const double TAXRATE=0.14;

int main()
{
    //declaration section
    double payrate,hoursworked,taxAmount;
   
    //input section
    cout<<"What is the pay rate for an hour& number of hours worked per week?"<<endl;
    cin>>payrate;hoursworked;
   
    //computation section
    double incomeaftertax = incomeaftertax *1-0.14;
    double clothes = incomeaftertax * 0.10;
    double supplies=incomeaftertax-clothes-supplies;
    double savingsbonds=incomeaftertax-clothes-supplies * 0.25;
    double parents = savingsbonds * 0.50;
   
    //output section
    cout<<"Income aftertax"<<incomeaftertax<<endl;
    cout<<"Money spent onclothes"<<clothes<<endl;
    cout<<"Money spent onsupplies"<<supplies<<endl;
    cout<<"Money spent on savingsbonds"<<savingsbonds<<endl;
    cout<<"Money parents spent on savingsbonds"<<parents<<endl;
   
    system("PAUSE");
    return 0;
   
}
   
   

Explanation / Answer

please rate - thanks it's not right, but can't totally fix without the assignment I've fixed what I can - incomeafter tax calculation, plus someother things #include using namespace std; const double TAXRATE= 0.14; int main() {     //declaration section     doublepayrate,hoursworked,taxAmount,income;     //input section     couthoursworked;     //computation section     income=payrate*hoursworked;     double tax=income*TAXRATE;     double incomeaftertax = income-tax;     double clothes = incomeaftertax * 0.10;     double supplies=incomeaftertax-clothes-supplies;       double savingsbonds=incomeaftertax-clothes-supplies * 0.25;     double parents = savingsbonds * 0.50;     //output section     cout