Question

In: Computer Science

In C++ Extra credit This is the formula for the future worth of an investment over...

In C++

Extra credit This is the formula for the future worth of an investment over time with consistent additional monthly payments and a steady rate of return. This can give you a bonus of 200 points. You will not be penalized if you do not do this nor will you be penalized if it is incorrect. This is a challenging problem because of all the mathematics involved. Let’s see how good you really are. FV = PV (1+ r/k) nk +PMT * [ (1+r/k) nk −1] * (1+ r/k) r/k FV : future value PV : initial value R : interest rate K : regular periodic investments • Annually, • Semi-annually, • Quarterly, • Monthly PMT: payment (installments) N : years Problem: You wish to start putting money away for your retirement (far-fetched, huh) anyway, how much would you have after 45 years if you started with an initial payment (PV) of $1000.00 and invested $250 (K) monthly. The dividend payments are 6% (R)and you invest $250 a month for the next 45 years. Your investment has an annual rate of return (R) of 6%.

Show how you would break this problem down into pieces (your pseudo code).

Then show your source code and display your initial investment, rate of return, length of time, monthly payments into the account and the final outcome. Show how much money you invested and what the final amount is, you’ll be surprised. HINT: try doing this problem manually first

Solutions

Expert Solution

PROGRAM

#include <iostream>
using namespace std;
int main()
{
float fv,pv,r,k,n,pmt,totalmoneyinvested;
pv=1000.00;
r=6/100;
k=12; //The value of k should be 12 for monthly installments
n=45;
pmt=250;
totalmoneyinvested=pv+(pmt*12*45); //The total money you invested

  
fv=pv*(1+r/k)*n*k+pmt*((1+r/k)*n*k-1)*(1+r/k)*r/k;
  
cout<<"Initial Investment:"<<" $"<<pv;
cout<<"\nRate Of Return:6%";
cout<<"\nLength of Time:"<<n<<"year";
cout<<"\nMonthly Payment:"<<" $"<<pmt;
cout<<"\nFinal Amount:"<<" $"<<fv;
cout<<"\nThe Money You Invested Is $"<<totalmoneyinvested<<" And The Final Amount Is $"<<fv;

return 0;
}

SCREENSHOT

OUTPUT

If u find this useful, please rate positive. Thank you


Related Solutions

XYZ has an investment worth $56,000. The investment will make aspecial, extra payment of X...
XYZ has an investment worth $56,000. The investment will make a special, extra payment of X to XYZ in 2 years from today. The investment also will make regular, fixed annual payments of $12,000 to XYZ with the first of these payments made to XYZ in 1 year from today and the last of these annual payments made to XYZ in 5 years from today. The expected return for the investment is 13.2 percent per year. What is X, the...
XYZ has an investment worth $56,000. The investment will make a special, extra payment of X...
XYZ has an investment worth $56,000. The investment will make a special, extra payment of X to XYZ in 3 years from today. The investment also will make regular, fixed annual payments of $12,000 to XYZ with the first of these payments made to XYZ in 1 year from today and the last of these annual payments made to XYZ in 5 years from today. The expected return for the investment is 13.2 percent per year. What is X, the...
Extra Credit Activity #1 You are considering buying a new car worth $15,000. You can finance...
Extra Credit Activity #1 You are considering buying a new car worth $15,000. You can finance the car either by withdrawing cash from your savings account (option 1), which earns 8% interest compounded monthly or by borrowing $15,000 from your dealer for five years at 11% interest compounded monthly and quarterly payments (option 2). Show the loan amortization schedule for option 2 (50 points) How much interest will you pay over the lifetime of the loan? (15 points) How much...
Jade has an investment worth $80,000. The investment will make a special extra payment of X to Jade in 3 years from today.
Jade has an investment worth $80,000. The investment will make a special extra payment of X to Jade in 3 years from today. The invesmtne will also make regular, fixed annual payments of $12,400 to Jade with the first of these payment made to Jade later today and the last of these annual payments made to Jade in 5 years from Today. The expected return for the investment is 8.5% per year. What is x , the amount of the...
Create 3 PowerShell Scripts. The first 2 are worth 2 points each. The 3rd one is extra credit, wo...
Create 3 PowerShell Scripts. The first 2 are worth 2 points each. The 3rd one is extra credit, worth 1 point. Script 1: Add/Remove Users Fields: Username, FirstName, LastName, Description, OUPath, Password, Action (Add | Remove) Script 2: Create Security Groups Fields: Name, Description, OUPath, Scope (DomainLocal | Global | Universal), Category (Distribution | Security) Script 3: Modify Security Group Membership Fields: GroupName, Username, Action (Add | Remove)
1. Calculate the future value of an investment worth $2800 that pays 1.5% simple interest rate...
1. Calculate the future value of an investment worth $2800 that pays 1.5% simple interest rate after 4 years. 2. Derek invested $1000. What would that money grow to in 18 months at a 5% annual simple interest rate? REAL QUESTIONS(IGNORE 1&2) 3. $7500 is deposited at a bank account that pays 3% interest compounded monthly. How much will the account worth after 5 years? 4. Amira deposited $2,000 into a savings account earning 2.6% APR compounded quarterly. How much...
: Suppose that the representative consumer’s preferences over current consumption (C) and future consumption (C 0...
: Suppose that the representative consumer’s preferences over current consumption (C) and future consumption (C 0 ) are given by the following utility function U(C, C0 ) = CC0β The market real interest rate is denoted by r and β > 0. 1. Write down the consumers’ budget constraint for the current and future period. 2. Using the equations in part (1), obtain the inter-temporal budget constraint. 3. Set up the consumer’s optimization problem using the Lagrangian approach. Next, derive...
The makers of Excedrin Extra Strength advertise that its fast-acting formula delivers extra strength headache relief...
The makers of Excedrin Extra Strength advertise that its fast-acting formula delivers extra strength headache relief in no more than 15 minutes, on average. A consumer advocacy group believes that this claim is incorrect, and that the true average headache relief time is significantly longer than 15 minutes. To test their belief, the consumer advocacy group took a random sample of 45 hospital patients who were currently experiencing a headache and administered a dose of Excedrin Extra Strength pain reliever....
PROGAMMING LANGUAGE: C++ Can anyone solve this assignment? Especially the extra credit part? Thanks. Please study...
PROGAMMING LANGUAGE: C++ Can anyone solve this assignment? Especially the extra credit part? Thanks. Please study the code 'Stack as Array example ' posted below. You need to implement a stack template, but this time implement the stack as a single linked list. The test of the class should be done with the same main function, slightly modified to declare a stack object and properly call the class functions. There is a helper file in the module that shows you...
Linear algebra Thank you. Extra Credit (No partial credit - 1%): It is often useful to...
Linear algebra Thank you. Extra Credit (No partial credit - 1%): It is often useful to perform a change of basis to examine an object from a different perspective. In the process of a larger work the conic  work the conic 3 x square − 10 x y + 3 y square + 16 x root 2 − 32 = 0 needs to be identified; this can be accomplished by a rotation. Identify the given conic and give its equation in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT