Question

In: Computer Science

The interest rate paid on funds deposited in a bank is determined by the amount of...

The interest rate paid on funds deposited in a bank is determined by the amount of time the money is left on deposit. For a particular bank, the following schedule is used:

Time on Deposit Interested Rate

Greater than or equal to 15 years 16.5 percent

Less than 15 years but greater than or equal to 10 years 11.5 percent

Less than 10 years but greater than or equal to 6 years 7.0 percent

Less than 6 years but greater than or equal to 3 years 3.0 percent

Less than 3 years but greater than or equal to 1 year 1.9 percent

Less than 1 year 1.1 percent

Write a program that accepts the time that funds are left on deposit and displays the interest rate that corresponds to the time entered. use cout and cin as these are the commands we are allowed to use at the moment.

Solutions

Expert Solution

#include <iostream>

using namespace std;

int main() {
int time;
float interest;
cout<<" Time that funds are left on deposit in years :";
cin>>time;
if(time>=15)
{
interest=16.5;
}else if(time>=10 && time<15)
{
interest=11.5;
}else if(time>=6 && time<10)
{
interest=7.0;
}else if(time>=3 && time<6)
{
interest=3.0;
}else if(time>=1 && time<3)
{
interest=1.9;
}else if(time<1)
{
interest=1.1;
}
  
cout<<"\nThe Interest rate is :"<<interest<<"%"<<endl;
}


Related Solutions

Compound Interest 8.) The amount of P 20,000 was deposited in a bank earning an interest...
Compound Interest 8.) The amount of P 20,000 was deposited in a bank earning an interest of 6.5% per annum. Determine the total amount at the end of 17 years if the principal and interest were not withdrawn during this period. 9.) The amount of P 150,000 was deposited in the bank earning ang interest of 7.5% per annum. Determine the total amount at the end of 16 years, if the principal and interest were not withdrawn during the period....
The interest that is paid to the bondholders is determined by the _________rate and the rate...
The interest that is paid to the bondholders is determined by the _________rate and the rate of interest expected by the investors who purchase the bonds is the ___________ rate. A. Face, Coupon b. Coupon, Stated c. Coupon, Market d. Effective, Market On January 1, 2014, Robbins Company issued five-year, $500,000 face value, 8% bonds that paid interest semi-annually. The market rate of other similar bonds was 10%. What was the issue price of Robbins Company’s bonds? a. $500,000 b....
An amount of $10,000 is deposited into a savings account that pays interest at a rate...
An amount of $10,000 is deposited into a savings account that pays interest at a rate of 7%. If 10 equal annual withdrawals are made from the account starting one year after the money was deposited, how much can be withdrawn so that in the fifth year one would be able to withdraw an additional $1,000 and the account would be depleted after 10 years? Explain verbally in detail and sketch a timeline to illustrate.
A principal amount P0 is deposited in a bank account earning 3% interest compounded monthly. After...
A principal amount P0 is deposited in a bank account earning 3% interest compounded monthly. After 20 years there is $1000 in the account. What was the principal P0? Suppose you want to buy a house for $300, 000, but you only have $100,000. You are able to make an investment that pays 7.3% annual interest. If the interest is compounded continuously, how long will it take before you can buy your new house? You are made an offer. You...
Under the loanable funds theory, the equilibrium interest rate is determined by the interaction between the...
Under the loanable funds theory, the equilibrium interest rate is determined by the interaction between the demand for and the supply of funds from financial market participants, mainly the household sector, the business sector and the government sector. Holding other factors constant, predict the change in domestic interest rates that would occur when facing each of the following situations. Explain your predictions in detail. i The total wealth of local financial market participants increases. ii The default risk of loans...
Assume federal funds rate is greater than the interest rate paid on reserves. What happens to...
Assume federal funds rate is greater than the interest rate paid on reserves. What happens to the federal funds rate when the Fed increases the interest rate on reserves? Draw the graphand explain.
Assume federal funds rate is greater than the interest rate paid on reserves. What happens to...
Assume federal funds rate is greater than the interest rate paid on reserves. What happens to the federal funds rate when the Fed increases the interest rate on reserves? Draw the graph and explain in simple terms
You just deposited $25,000 in a bank account that pays a 12.0% nominal interest rate, compounded...
You just deposited $25,000 in a bank account that pays a 12.0% nominal interest rate, compounded semi-annually. If you also add another $3,000 to the account each year over the next five years, how much will be in the account five years from now?
You just deposited $2,500 in a bank account that pays a 4.0% nominal interest rate, compounded...
You just deposited $2,500 in a bank account that pays a 4.0% nominal interest rate, compounded quarterly. If you also add another $5,000 to the account one year (4 quarters) from now and another $7,500 to the account two years (8 quarters) from now, how much will be in the account three years (12 quarters) from now? Group of answer choices $18,563.53 $17,679.55 $16,035.88 $16,837.67 $15,234.08
You just deposited $3,500 in a bank account that pays a 4.0% nominal interest rate, compounded...
You just deposited $3,500 in a bank account that pays a 4.0% nominal interest rate, compounded quarterly. If you also add another $5,000 to the account one year (4 quarters) from now and another $7,500 to the account two years (8 quarters) from now, how much will be in the account three years (12 quarters) from now?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT