Question

Write a program that calculates and displays the amount of money available in a bank account...

Write a program that calculates and displays the amount of money available in a bank account that initially has $8000 deposited in it and that earns interest at the rate of 3.5 percent a year. Your program should display the amount available at the end of each year for a period of 7 years. Use the relationship that the money available at the end of each year equals the amount of money in the account at the start of the year plus 0.035 times the amount available at the start of the year. We are currently using cin/cout, while loops, for loops

Homework Answers

Answer #1

#include <iostream>
using namespace std;
int main()
{
int initial_amount=8000;
float rate=0.035;
for(int i=1;i<=7;i++)
{
//calculate the end of the year amount
float end_year_amount= initial_amount+(initial_amount*rate);
cout<<"year: "<<i<<" "<<end_year_amount<<"$"<<endl;
initial_amount=end_year_amount;
}


}

Know the answer?
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
Similar Questions
Create a program in C++ language, create a flowchart, provide a screenshot of the program and...
Create a program in C++ language, create a flowchart, provide a screenshot of the program and output, and involve looping for your program: Nested loops: Challenge. Write a program that calculates and displays the yearly amount available if $1000 is invested in a bank account for 10 years. Your program should display the amounts available for interest rates from 6% to 12% inclusively, in 1% increments. Use a nested loop, with the outer loop controlling the interest rate and the...
Problem 2 write Pseudocode for a program that calculates and displays a customer's bank balance at...
Problem 2 write Pseudocode for a program that calculates and displays a customer's bank balance at the end of a month. The customer's bank balance at the end of the month is the beginning bank balance + the total amount of monthly deposit made - the total amount of monthly withdrawals made + interest earned. The information the program will need to get from the user is the beginning bank balance, the amount of monthly deposits , the amount of...
Write most basic C++ program possible that calculates monthly savings account balance. Program will prompt user...
Write most basic C++ program possible that calculates monthly savings account balance. Program will prompt user to enter initial account balance, annual percentage rate, amount deposited each month, and total number of months. Validate user inputs allowing only positive numbers. B = initial account balance A = amount deposited each month R = annual percentage rate Total Balance = (R/12+1)B+A
Design a program that calculates the amount of money a person would earn over a period...
Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what salary was for each day, and then show the total pay at the end of the period. The output should be displayed in a...
a. Define the class bankAccount to store a bank customer’s account number and balance. Suppose that...
a. Define the class bankAccount to store a bank customer’s account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit and withdraw money, and print account information. Add appropriate constructors. b. Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (designed in part (a)). This class...
Suppose $1,000,000 fund is established for a scholarship program in a school. Assume that the amount...
Suppose $1,000,000 fund is established for a scholarship program in a school. Assume that the amount is deposited in a long-term saving bank account that pays 6.75% yearly continuous interest rate with agreement that $15,000 will be withdrawn at the end of each year. Write a model whose solution predicts total balance in the bank after t years. Obtain the solution. Is this scholarship program sustainable?
3. [20PTS] Mr. Lee deposited a large amount of money in his first bank account. Annual...
3. [20PTS] Mr. Lee deposited a large amount of money in his first bank account. Annual withdrawals of 30,000 pesos starting EOY 1 were made for 7 years to pay for personal expenses. He stopped withdrawing after the 7th year when he was assigned to work abroad. After 3 years of working abroad without withdrawing or depositing from his bank account, he went back to the Philippines. He started withdrawing money again on the 10th year with an amount of...
Suppose $1,000 is deposited in a bank account today (time 0), followed by $1,000 deposits in...
Suppose $1,000 is deposited in a bank account today (time 0), followed by $1,000 deposits in years 2, 4, 6, and 8. At 6% annual interest, how much will the future equivalent be at the end of year 12? Suppose that annual income from a rental property is expected to start at $1,300 per year and decrease at a uniform amount of $50 each year after the first year for the 15-year expected life of the property. The investment cost...
June 1 The owner opened a bank account for the business with a deposit of $35,000....
June 1 The owner opened a bank account for the business with a deposit of $35,000. This is capital provided by him. 1 Purchased display stands, shelving etc. (shop equipment) from Shop Displays Pty Ltd for $35,000 and computer equipment for the shop from Computer Wizards for $5,000. These were paid for with a loan of $36,000 from the bank and cheque for $4,000 from the business bank account. The bank loan is repayable over 4 years. 2 Paid $4,680...
1. For the next 6 years, you pan to make equal quarterly deposits of $600.00 into...
1. For the next 6 years, you pan to make equal quarterly deposits of $600.00 into an account paying 8% compounded quarterly. How much will be the total you have at the end of the time? 2. How much money will you have to deposit now if you wish to have $5,000 at the end of 8 years. Interest is to be at the rate of 6% compounded semiannually? 3. In the California “Million Dollar Lottery” a winner is paid...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT