Question

The interest rate used on funds deposited in a bank is delermined by the amount of time the money is left on deposit. For a p

in C++

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please comment, if you need any corrections.Please give a Thumps up if you like the answer.

Program

#include<iostream>
using namespace std;
int main()
{
   //Declare variables
   double int_rate,time;
  
   //Read input from user
   cout<<"Enter number of years the money is deposited: ";
   cin>>time;

   //Calculate interest rate
   if (time >= 5)
        int_rate=.0475;
   else if ((time >= 4) && (time <= 5))
   int_rate=.045;
   else if ((time >= 3) && (time <= 4))
   int_rate=.040;
   else if ((time >= 2) && (time <= 3))
   int_rate=.035;
   else if ((time >= 1) && (time <= 2))
   int_rate=.030;
   else
       int_rate=.025;

   //Display output
   cout<<"Time : "<<time<<" years."<<endl;
   cout<<"Interest Rate : "<<int_rate<<endl;
   return 0;
}

Output

Enter number of years the money is deposited: 2.3
Time : 2.3 years.
Interest Rate : 0.035

Enter number of years the money is deposited: 6.7
Time : 6.7 years.
Interest Rate : 0.0475

Add a comment
Know the answer?
Add Answer to:
in C++ The interest rate used on funds deposited in a bank is delermined by the...
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
  • The Simple Bank offers a 8 percent simple interest on deposited money. The Not-So-Simple Bank pays...

    The Simple Bank offers a 8 percent simple interest on deposited money. The Not-So-Simple Bank pays 8 percent interest on deposited money, compounded annually.    You can deposit your money in either one of these two banks. If your deposit equals $65,000, by how much more will your money grow if you deposit it into The Not-So-Simple Bank, rather than The Simple Bank, for a total of 8 years? (Do not round intermediate calculations and round your answer to 2...

  • 4. You just deposited $3,500 into a bank account and the current real interest rate is...

    4. You just deposited $3,500 into a bank account and the current real interest rate is at r = 2% and inflation is expected to be te = 3% over the next year. (a) What nominal interest rate, i, from the bank would you require? (b) How much money will you have at the end of one year? (c) How much money will you have at the end of two years? (d) If you are saving up to buy a...

  • Assume you just deposited $1,000 into a bank account. The interest rate on your deposit is...

    Assume you just deposited $1,000 into a bank account. The interest rate on your deposit is 6% and inflation is expected to be 2% over the next year. What is the real interest rate you expect to earn on your deposit over the next year? How much money will you have on deposit at the end of one year? If you are saving to buy a new smartphone that currently sells for $1,050, will you have enough money to buy...

  • Your local bank is offering a new type of retirement savings account. An initial deposit is...

    Your local bank is offering a new type of retirement savings account. An initial deposit is made to the account when it is opened. This money and any accumulated interest must be left in the account for 29 years. No additional deposits can be made. On the day the account is opened and on each annual anniversary of the initial deposit, the account balance is reviewed and the following terms apply: 1. If the account balance is less than or...

  • Effective versus nominal interest rates Bank A pays 9.5% interest compounded annually on deposits, while Bank...

    Effective versus nominal interest rates Bank A pays 9.5% interest compounded annually on deposits, while Bank B pays 9% compounded daily. a. Based on the EAR (or EFF%), which bank should you use? I. You would choose Bank A because its EAR is higher. 11. You would choose Bank B because its EAR is higher. III. You would choose Bank A because its nominal interest rate is higher IV. You would choose Bank B because its nominal interest rate is...

  • Universal Bank pays 6% Interest, compounded annually, on time deposits. Regional Bank pays 5% interest, compounded...

    Universal Bank pays 6% Interest, compounded annually, on time deposits. Regional Bank pays 5% interest, compounded quarterly a. Based on effective interest rates, in which bank would you prefer to deposit your money? 1. You would choose Regional Bank because its EAR (or EFF%) is higher. II. You would choose Regional Bank because its nominal interest rate is higher. TIL. You are indifferent between the banks and your decision will be based upon which one offers you a int for...

  • Olivia deposited $800 at her local credit union in a savings account at the rate of...

    Olivia deposited $800 at her local credit union in a savings account at the rate of 6.2% paid as simple interest. She will earn Interest once a year for the next 7 years. If she were to make no additional deposits or withdrawals, how much money would the credit union owe Olivia in 7 years? O $1,218.88 $852.68 $1,147.20 $149.60 Now, assume that Olivia's credit union pays a compound interest rate of 6.2% compounded annually. All other things being equal,...

  • (1 point) A bank account earns 11 percent interest compounded continuously. At what (constant, continuous) rate...

    (1 point) A bank account earns 11 percent interest compounded continuously. At what (constant, continuous) rate must a parent deposit money into such an account in order to save 100000 dollars in 13 years for a child's college expenses? rate = (dollars/year) If the parent decides instead to deposit a lump sum now in order to attain the goal of 100000 dollars in 13 years, how much must be deposited now? amount = (dollars)

  • 1. If the nominal interest rate of is 2% per quarter, what is the nominal rate...

    1. If the nominal interest rate of is 2% per quarter, what is the nominal rate per year ? 2. $100 of interest is paid each month on an investment of $10000, if the interest is compounded monthly at the end of 2 years, what is the accumulation at the end of two years ? 3. An individual wishes to deposit an amount of money now to have an accumulation of $500 at the end of five years. If the...

  • Future 0.23 Suppose that you deposit $1,000 into a savings account that pays 8 percent. a If the bank compounds int...

    Future 0.23 Suppose that you deposit $1,000 into a savings account that pays 8 percent. a If the bank compounds interest annually, how much will you have in your account in four years? b. What would your balance be in four years if the bank used quarterly com- pounding rather than annual compounding? C. Suppose you deposited the $1,000 in four payments of $250 each year beginning one year from now. How much would you have in your account after...

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