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

Michael found an exciting summer job, which required him to work 40 hours a week

ID: 641617 • Letter: M

Question

Michael found an exciting summer job, which required him to work 40 hours a week for 12 weeks. 14% of his total summer pay went to cover taxes (i.e., federal & state taxes). After taxes, he spent 10% of his money to buy new clothes for the next school year and 1% to buy school supplies. After buying clothes and school supplies, he used 25% of the remaining money to buy saving bonds. Michael placed the remaining money in a savings account. Write an interactive C++ program that reads in Michael

Explanation / Answer

#include <iostream>
#include <iomanip>

using namespace std;

int main(){
   int nH = 40;
   int nW = 12;
   double payRate;
   cout << "Enter payRate: ";
   cin >> payRate;
   double total = nH * nW * payRate;
   cout << fixed;
   double current = total;
   cout << "Michael