Question

In Visual Studio Investment Recursion An investment company guarantees a 2% monthly compounded return on your investment. You want to see how


Visual studio C++
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code

#include<iostream>
#include <math.h>
using namespace std;

int main(){
  
float CI, investAmount, amount,x;
int rate = 2;
int counter;
amount = 0;
cout << "Enter Continuous Monthly Investment : ";
cin >> investAmount;
//counter to count number of months
counter = 0;
  
//run loop till the amount reaches $500000
while(amount<500000){
  
//add Monthly invesment to Principal amount
amount = amount + investAmount;
//Calculate total compound Amount
x = amount*pow((1.0+rate/100.), 1);
  
CI = x - amount;
cout << "You made Intrest Of $" << CI <<" This Month\n";
//set compound Amount as New Amount
amount = x;
cout<<"You Now have $" << amount << "\n";
  
//increase Month Counter in each iteration
counter++;
}
cout<<" Total time to reach $500,000 will be " <<counter<<" months";


return 0;
}

OUTPUTS

Enter Continuous Monthly Investment 400 ou made Intrest of $8 This Month You Now have $408 You made Intrest of $16.16 This Mo

You Now have $464506 You made Intrest of $9298.12 This Month You Now have $474204 You made Intrest of $9492.09 This Month You

Add a comment
Know the answer?
Add Answer to:
Investment Recursion An investment company guarantees a 2% monthly compounded return on your inve...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 03 Your parents will retire in 18 years. They currently have $250,000, and they think they...

    03 Your parents will retire in 18 years. They currently have $250,000, and they think they will need $1 millin at retirement. What annual interest rate must they earn to reach their goal, assuming they don't save any additional funds? 05 You have $42,180.53 in a brokerage account, and you plan to deposit an additional $5,000 at the end of every future year until your account totals $250,000. You expect to earn 12% annually on the account. How many years...

  • 03 Your parents will retire in 18 years. They currently have $250,000, and they think they...

    03 Your parents will retire in 18 years. They currently have $250,000, and they think they will need $1 millin at retirement. What annual interest rate must they earn to reach their goal, assuming they don't save any additional funds? 05 You have $42,180.53 in a brokerage account, and you plan to deposit an additional $5,000 at the end of every future year until your account totals $250,000. You expect to earn 12% annually on the account. How many years...

  • 3. You have found three investment choices for a​ one-year deposit:10.0 % APR compounded​ monthly, 10.0%...

    3. You have found three investment choices for a​ one-year deposit:10.0 % APR compounded​ monthly, 10.0% APR compounded​ annually, and 9.0% APR compounded daily. Compute the EAR for each investment choice.​ (Assume that there are 365 days in the​ year.) ​(Note: Be careful not to round any intermediate steps less than six decimal​ places.) 4. Suppose Capital One is advertising a 60​-month, 5.99 %APR motorcycle loan. If you need to borrow$8,000to purchase your dream​ Harley-Davidson, what will be your monthly​...

  • Solve the following problems using either Tables 11-1 or 11-2 from your text. When necessary, create...

    Solve the following problems using either Tables 11-1 or 11-2 from your text. When necessary, create new table factors. (Round new table factors to five decimal places, round dollars to the nearest cent and percents to the nearest hundredth of a percent) Refer to Narrative 11-1. George invests $12,500, at 12% interest, semiannually for 12 years. Calculate the compound amount for his investment. Table 11-1: Compound Interest Table (Future Value of $1 at Compound Interest) (1 of 2) CENGAGE Table...

  • Your employer needs a program that analyzes the monthly sales figures for each division. Write a...

    Your employer needs a program that analyzes the monthly sales figures for each division. Write a Python program that allows the user to enter a series of numbers and places the numbers (not string values) in a list. Each number entered by the user is the monthly sales amount for one division. Use a sentinel-controlled loop to get input from the user and place each value entered into the list as long as the value is not negative. As soon...

  • 1 to 10 Excel Hydro took a loan contract which requires a payment of $40 million...

    1 to 10 Excel Hydro took a loan contract which requires a payment of $40 million plus interest two years after the contract's date of issue. The interest rate on the $40 million face value is 9.6% compounded quarterly. Before the maturity date, the original lender sold the contract to a pension fund for $43 million. The sale price was based on a discount rate of 8.5% compounded semi-annually from the date of sale. Excel Hydro is also considering building...

  • Can) ou are in the process of purchasing a new automobile that will cost you $27,500....

    Can) ou are in the process of purchasing a new automobile that will cost you $27,500. The dealership is offering you either a $2,500 rebate (applied toward the purchase price) or financing at a 0.9% APR for 48 months (with payments made at the end of the month) and no rebate. You have been pre-approved for an auto loan through your local credit union at an interest rate of 5.5% APR for 48 months. If you take the $2,500 rebate...

  • I need help on question 2. MODULE IV: TIME VALUE OF MONEY INTRODUCTION The time value...

    I need help on question 2. MODULE IV: TIME VALUE OF MONEY INTRODUCTION The time value of money analysis has many a lysis has many applications, ranging from setting hedules for paying off loans to decisions about whether to invest in a partie financial instrument. First, let's define the following notations: I = the interest rate per period Na the total number of payment periods in an annuity PMT = the annuity payment made each period PV = present value...

  • Calculate all of the problems in the document below in an Excel spreadsheet or on a...

    Calculate all of the problems in the document below in an Excel spreadsheet or on a financial calculator. Please show your work in order to get credit. For each problem, state the inputs given, what you are being asked to find (the missing input), and then use the Finance function to get the correct answer (if using Excel). 1. If you wish to accumulate $100,000 in 5 years, how much must you deposit today in an account that pays an...

  • Fleda's Beauty Company has $200,000 of total assets and earns 20 percent interest and taxes on...

    Fleda's Beauty Company has $200,000 of total assets and earns 20 percent interest and taxes on these assets. The ratio of total debts to total assets (or DR been set at 50 percent. The interest rate on short-term debt is 7 percent, while the interest rate on long-term debt is 10 percent. A conservative policy calls for only long-term debt with no short-term debt; an intermediate policy calls for 50 percent short-term debt and 50 percent long-term debt; and an...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT