Question

In: Computer Science

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

Using Visual Studio C Language.

Problem 1

Workers at a particular company have won a 7.6% pay increase retroactive for 6 months. Write a program that takes an employee's previous annual salary as input and outputs the amount of retroactive pay due to the employee, the new annual salary and the new monthly salary. Use a variable declaration with the modifierconst to express the pay increase. Your program should allow the calculation to be repeated as often as the user wishes.

Retroactive - taking effect from a date in the past

Sample output as follows:-

Enter current annual salary:100000

Program should return new annual salary, monthly salary, and retroactive pay.

new annual salary 107600

new monthly salary 8966.67

retroactive salary due: 3800


Solutions

Expert Solution

Use Visual studio 2010 C++ to run this program:

#include

using namespace std;

//pay increase retroactive per months

const double INCREASE=1.23;

//Function prototype

void calculate(double previous_salary,int months)

{

double new_salary, pay_raise;

pay_raise=((previous_salary/100)*INCREASE)/months;

new_salary = previous_salary+(pay_raise*months);

cout << "Your new yearly salary is " << new_salary<< " dollars for this year.\n";

}

int main( )

{

//pay increase retrper 6 months

const double PAY_INCREASE = 7.6;

double previous_salary;

double new_salary, pay_raise;

int months;

cout << "Enter employee's previous annual salary:\n";

cin >> previous_salary;

cout<<"Enter number of months to calculate the new salary:"<

cin>>months;

calculate(previous_salary,months);

system("pause");

return 0;

}


Related Solutions

this is c++ basics pleases. Workers at a company have won a 7.6 % pay increase...
this is c++ basics pleases. Workers at a company have won a 7.6 % pay increase retroactive for 6 months. Write a program that takes an employee's previous annual salary as input, and output the amount of Retroactive pay due the employee, the new annual salary, and the new monthly salary. Use a variable declaration with the modifier const to express the pay increase.   You do not need to do this last part at this time: Your program should allow...
The company has been making efforts to increase the skills of its workers and they have...
The company has been making efforts to increase the skills of its workers and they have been funding training programs for employees. Five years ago, only 8% of the workforce had C TRAINING LEVEL, the most advanced training level. They will use this sample to determine if there is significant evidence that their efforts have led to an increase in the proportion of employees with C  TRAINING LEVEL. Use significant level alpha=5% to conduct the appropriate hypothesis test and enter your...
The probability that house sales will increase in the next 6 months is estimated to be...
The probability that house sales will increase in the next 6 months is estimated to be 0.25. The probability that the interest rates on housing loans will go up in the same period is estimated to be 0.74. The probability that house sales or interest rates will go up during the next 6 months is estimated to be 0.89. 1) The probability that house sales will increase but interest rates will not is 2) The events increase in house sales...
A U.S. company expects to have to pay 10 million Mexican pesos in six months. Explain...
A U.S. company expects to have to pay 10 million Mexican pesos in six months. Explain how the exchange rate risk can be hedged using (a) a forward contract and (b) an option.
A security will pay an investor a cash flow of $50 every 6 months for 10...
A security will pay an investor a cash flow of $50 every 6 months for 10 years and a lump sum of $1000 at maturity in 10 years. The price of this security is currently $750. Which of the following is true? If demand for this security increases then the yield should increase If demand for this security increases then the yield should decrease If demand for this security increases then the effective rate should increase If demand for this...
You need to pay for the property taxes on your house in 6 months. The property...
You need to pay for the property taxes on your house in 6 months. The property taxes at that time will be $6,000 . How much do you have to invest each month, starting next month, for 5 months to exactly pay for the taxes if your investments earn 5.00% APR (compounded monthly)? a. 1,185 b. 1,227 c. 1,221 d. 1,140 d.
1. Suppose workers bargain for a new contract that gives them a 5 percent pay increase...
1. Suppose workers bargain for a new contract that gives them a 5 percent pay increase over the next year. If they expected no inflation and inflation is in fact 2 percent, inflation makes: a. both workers and firms worse off. b. workers worse off and firms better off. c. workers better off and firms worse off. d. both workers and firms better off. 2. Social security payments have been adjusted for inflation annually since the late 1970s yet it...
Treasury spot rates (expressed as semiannually pay yields to maturity) are as follows: 6 months 1%,...
Treasury spot rates (expressed as semiannually pay yields to maturity) are as follows: 6 months 1%, 1 year 1.5%, 1.5 year 2% 2 year: 2.5% and 2.5 year: 2.25%. A 2.5 year, 3.5% Treasury bond is trading at $1,043. What is the arbitrage trade and how much would profit would you earn from doing the trade?
6. You won the big prize in the California lottery and you have to choose one...
6. You won the big prize in the California lottery and you have to choose one of the following two payment plans: Payment Plan 1: If you choose this payment plan, you will receive semiannual payments for a fixed period of time. The first payment of Rs. 150,000 will be paid on January 01, 2007 and it will grow by 2% every six months. You will receive the last payment on January 01, 2016 Payment Plan 2: If you choose...
Jamal has two debts to pay. A $4500 due in 6 months from today and a $5000 due in 18 months from today.
Jamal has two debts to pay. A $4500 due in 6 months from today and a $5000 due in 18 months from today. Instead, he wants to make a single $9500 payment to settle both debts. Find the time he needs to make that payment. Assume interest rate to be 6% p.a. compounding quarterly
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT