Question

In: Computer Science

The University of Amazon faculty have just signed a new three-year contract that included pay rate...

  1. The University of Amazon faculty have just signed a new three-year contract that included pay rate increases for the next three years of 6% (first year), 5% (second year), and 4% (third year). Write a program that inputs the current salary and the current year. Program MUST include at least one function. It can be a void function or a data type function whichever you choose. Output should include year and salary for each year. For example:

2020 $xx,xxx.xx

2021 $xx,xxx.xx

2022 $xx,xxx.xx

2023 $xx,xxx.xx

Test Data: 2020, 43897.00

Program is in c++.

Solutions

Expert Solution

Thanks for the question. Below is the code you will be needing. Let me know if you have any doubts or if you need anything to change.

If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions.

Thank You!
===========================================================================

#include<iostream>
#include<iomanip>

using namespace std;

void calcNewSalary(double &sal, double hike_percent){
  
   sal = sal + sal*hike_percent/100;
}

int main(){
  
   double curr_sal;
   int year;
  
   cout<<"Enter year: "; cin >> year;
   cout<<"Enter current salary: "; cin >> curr_sal;
  
  
   double raise_percentage[] = {0, 6,5,4} ;
  
   cout<<setprecision(2)<<showpoint<<fixed;
   for(int i=0; i<4; i++){
      
       calcNewSalary(curr_sal,raise_percentage[i]);
       cout<<year++<<" $"<<curr_sal<<endl;
   }

   return 0;
}


Related Solutions

You just signed a 10 year contract that will pay you $1,000,000 at the end of...
You just signed a 10 year contract that will pay you $1,000,000 at the end of next year, with a scheduled pay increase of 5% each year. If your cost of capital is 8.5%, how much is the contract worth? Starting Salary Years on Contract Growth Rate Cost of Capital $            1,000,000 10 5% 8.50% Manual NPV Year Salary PV
Your company has just signed a​ three-year nonrenewable contract with the city of New Orleans for...
Your company has just signed a​ three-year nonrenewable contract with the city of New Orleans for earthmoving work. You are investigating the purchase of heavy construction equipment for this job. The equipment costs ​$203,000 and qualifies for​ five-year MACRS depreciation. At the end of the​ three-year contract, you expect to be able to sell the equipment for ​$74,000. If the projected operating expense for the equipment is ​$68,000 per​ year, what is the​ after-tax equivalent uniform annual cost​ (EUAC) of...
Jason just signed a $6 million 3 year contract with the patriots. The contract calls for...
Jason just signed a $6 million 3 year contract with the patriots. The contract calls for a payment of $3 million 1 year from today, $2 million 2 years from today and $1 million 3 years from today, what is the contract really worth as of today if he can earn 10% apr on his money (assume annual compounding).
Your firm employs 10 employees. You have just signed a new contract to construct a small...
Your firm employs 10 employees. You have just signed a new contract to construct a small store in a local city. However, due to the coronavirus pandemic, you are experiencing supply chain problems relative to your raw materials. Discuss in detail how you would approach this problem.
!. A and B. You have just signed a contract to purchase your first house. The...
!. A and B. You have just signed a contract to purchase your first house. The price is $230,000 and you have applied for a $100,000, 20-year, 6.8% loan. Annual property taxes are expected to be $6,670. Hazard Insurance costs $600 per year. Your car payment is $175, with 46 months left. Your monthly gross income is $3,225. What is your monthly payment of principal and interest? You have just signed a contract to purchase your first house. The price...
You have just signed a 5-year contract with the ABB Group, a world-famous Engineering Consulting firm....
You have just signed a 5-year contract with the ABB Group, a world-famous Engineering Consulting firm. Your compensation includes a $10,000 signing bonus payable today and monthly payments of $6000 at end of the month and an additional $10,000 completion bonus at the end of year 5. Your salary and bonuses are invested in a savings account that pays 4% compounded monthly. a) What is the present value of this contract? b) You plan to put both the signing bonus...
You have just signed a contract to purchase your first house. The price is $160,000 and...
You have just signed a contract to purchase your first house. The price is $160,000 and you have applied for a $100,000, 24-year, 4.6% loan. Annual property taxes are expected to be $5,509. Hazard Insurance costs $600 per year. Your car payment is $150, with 31 months left. Your monthly gross income is $4,225. What is your monthly payment of principal and interest? You have just signed a contract to purchase your first house. The price is $210,000 and you...
The four actors below have just signed a contract to star in a dramatic movie about...
The four actors below have just signed a contract to star in a dramatic movie about relationships among hospital doctors. Each person signs independent contracts with the following terms: Contract Terms Contract Amount Payment Date Derek $ 540,000 2 years Isabel 580,000 3 years Meredith 450,000 Today George 440,000 1 year Required: 1-a. Assuming an annual discount rate of 9%, calculate the present value of the contract amount. (FV of $1, PV of $1, FVA of $1, and PVA of...
The four actors below have just signed a contract to star in a dramatic movie about...
The four actors below have just signed a contract to star in a dramatic movie about relationships among hospital doctors. Each person signs independent contracts with the following terms: Contract Terms Contract Amount Payment Date Derek $ 580,000 2 years Isabel 620,000 3 years Meredith 490,000 Today George 480,000 1 year Required: 1-a. Assuming an annual discount rate of 8%, calculate the present value of the contract amount. (FV of $1, PV of $1, FVA of $1, and PVA of...
A professional baseball player just signed a contract to pitch for the Houston Astros. The contract...
A professional baseball player just signed a contract to pitch for the Houston Astros. The contract specified that the player would earn $1,000,000.if he were healthy and could pitch. The contract also specified that he would earn $0. if he became I injured and unable to putch. There is a 10% (.1 probability) chance that the pitcher would become injured. 1). What is the Expected Utility for the Beneficiary( Baseball Pitcher) with insurance? 2). What is the Actuarially Fair price...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT