Question: // Modify program from Programming Project #2 so that it // calculates retroactive // salary for a worker for a number of months entered by

 // Modify program from Programming Project #2 so that it //

// Modify program from Programming Project #2 so that it // calculates retroactive // salary for a worker for a number of months entered by the user. //Given a 7.6% pay increase, //input salary //input number of months to compute retroactive salary //output new annual and monthly salaries, retroactive pay #include const double INCREASE 0.076 int main() using std::cout; using std: :cin; using std: :endl; double oldSalary, salary, monthly, oldMonthly, retroactive; int numberOfMonths; // number of months to pay retroactive increase char ans; cout > oldSalary; //old annual salary cin >> numberOfMonths; salary -oldSalary * (1 + INCREASE: /ew annual salary oldMonthly-oldSalary / 12; monthly salary / 12; retroactive = (monthly - oldMonthly) * numberofMonths; // retroactivesalary - oldSalary)/2; // six months retroactive pay increase. cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!