Write a program that inputs the amount of money to deposit

Assignment Help C/C++ Programming
Reference no: EM131609281

Question: A savings account typically accrues savings using compound interest. If you deposit $1,000 with a 10% interest rate per year, then after one year you have a total of $1,100. If you leave this money in the account for another year at 10% interest, then after two years the total will be $1,210. After three years, you would have $1,331, and soon.

Write a program that inputs the amount of money to deposit, an interest rate per year, and the number of years the money will accrue compound interest. Write a recursive function that calculates the amount of money that will be in the savings account using the input information.

To verify your function, the amount should be equal to P (1 + i) n, where P is the amount initially saved, i is the interest rate per year, and n is the number of years

Reference no: EM131609281

Questions Cloud

What is the total number of handshakes : There are n people in a room, where n is an integer greater than or equal to 1. Each person shakes hands once with every other person.
Identify the impact of this legislation on nursing practice : Identify the impact of this legislation on your nursing practice by choosing two key nursing provisions outlined in the American Nurses Association.
What are the advantages of mcdonaldizing the corrections : What are the advantages of McDonaldizing the police, courts, and corrections? What are the Disadvantages of McDonaldizing the police, courts, and corrections?
Determine the yield to maturity : a. Determine the yield to maturity. b. What is the value of the bonds to you given the yield to maturity on a? comparable-risk bond?
Write a program that inputs the amount of money to deposit : Write a program that inputs the amount of money to deposit, an interest rate per year, and the number of years the money will accrue compound interest.
Yield to maturity on similar : Pybus is hoping to get a AA rating on its bonds? and, if it? does, the yield to maturity on similar AA bonds is 9.5 percent.
The pesticide exposure caused in humans : What are the steps that could have been taken to prevent the adverse health outcomes from occurring?
Explain what type of crime is it : How might societal factors have influenced this suspects crimes, Analyze how the purpose of government and the social contract
Analyze types of descriptive statistics that might be best : Analyze the types of descriptive statistics (numerical measures) that might be best for summarizing the data, if you were to collect a sample.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Size of an uncompressed text

Suppose the size of an uncompressed text file is 1 megabyte. How long does it take to download the file over a 32 Kilobit per second modem? How long does it take to take to download the file over a 1 megabit per second modem?

  Contains a design with a while loop

This problem contains a design with a while loop. Assume that sum references a doubleword in the data segment and that count is in the ECX register. Give a fragment of 80x86 assembly code that implements the design.

  What are the two floating point types in cpp

What are the two floating point types in C++ and how do they differ? How can you use the setprecision() and setiosflags() manipulators to control the output of decimal numbers?

  Use the convention that all years have 360 days

In writing the days() function, use the convention that all years have 360 days and each month consists of 30 days. The function should return the number of days for any Date structure passed to it. Write a main () function to test your function.

  A program that tests the users ability to memorize

a program that tests the user's ability to memorize a sequence of colors

  Program that incorporates these two functions

Write the program that incorporates these two functions, as described. You will notice that the two functions have very similar statements, so you are doing some repetitive C++ code.

  Assume that section

Assume that section _1 seats are in front of the stage, and the price is expensive. say, each seat in the 1st three rows is $180.00, and each seat in the last two rows is 10% less;

  Expected value of the game

A game involves rolling two dice. If the sum of the dice is under 6 your pay off is $5, and if the sum is 6 or over you must pay $5. Find the expected value of the game. Is the game fair? Explain.

  Definition of the function template moventhfront

Write the definition of the function template moveNthFront that takes as a parameter a queue and a positive integer, n.

  Write a program that prompts for and gets a student name

Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) the number using a function.

  What are the sizes in memory of data types

What are the sizes in memory of other data types in C++? I mean, I know that a double is 8 bytes and an int is 4 bytes. What si the size of a Char and a String?

  Write c++ program that reads in the average monthly rainfall

Write a C++ program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd