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

Workers at a particular company have won a 7.6% pay increase retroactive for six

ID: 3542994 • Letter: W

Question

Workers at a particular company have won a 7.6% pay increase retroactive for six months.

Write a program that takes an employees previous annual salary ( 35000.25) as input, and outputs the amount of retroactive pay

due the employee, the new annual salary, and the new monthly salary.

Use a constant declaration to express the pay increase.

You have to declare another constant to represent the number of months per year.

There are 2 constants and 4 variables in this program.

const float Pay_Increase = 0.076;

const int No_Months = 12;

float Annual_Salary; 35000.25

float New_Annual_Salary; 37660.30

float Retro_Pay; 1330.01

float New_Monthly_Salary; 3138.36

Explanation / Answer


#include<iostream>
#include<iomanip>
using namespace std;
const float Pay_Increase = 0.076;
const int No_Months = 12;
int main()
{
float Annual_Salary;
float New_Annual_Salary;
float Retro_Pay;
float New_Monthly_Salary;
cout << "Enter Annual Salary of Employee";
cin >> Annual_Salary;
cout <<endl;
New_Annual_Salary = Annual_Salary*(1+Pay_Increase);
Retro_Pay = (New_Annual_Salary-Annual_Salary)/2;
New_Monthly_Salary = New_Annual_Salary/12;
cout <<"Annual_Salary :" <<fixed << setprecision(2) << Annual_Salary << endl;
cout <<"New_Annual_Salary :" << New_Annual_Salary << endl;
cout <<"Retro_Pay :" << fixed << setprecision(2) <<Retro_Pay << endl;
cout <<"New_Monthly_Salary :" << fixed << setprecision(2) <<New_Monthly_Salary << endl;
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