create a program with recursion, and classes

Anonymous
timer Asked: Apr 27th, 2018
account_balance_wallet $5

Question Description

i need help writing a C++ program with recursion, with classes, for a homework assignment the information is in an office document.

Unformatted Attachment Preview

Book Chapter 13 Recursion, adopted from programming project 8 from absolute C++ The program is a C++ program and is: A savings account typically accrues savings using compound interest. If you deposit $1000 with a 10% interest rate per year, after one year you will have $1100. If you leave this money in the account for another year at 10% interest, you will have $1210. After three years you will have $1331, and so on. Write a program that inputs the initial amount , 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 𝑃(1+ 𝑖)𝑛, where P is the amount initially saved, i is the interest rate per year, and n is the number of years. The program should : • • • • Use only one file for the program. Create a class named SavingsAccount. Clearly separate the declaration and implementation sections. Add constructors, accessors and mutators and any other function you believe is important. • Add as a member the recursive function for this project named projectedSavings() with three input values as described which returns the final savings amount after the interest is applied. Sample output: Please enter the principle: 1000 Please enter the interest rate: 10 Please enter the number of years: 3 Your total savings after 3 years will be $1331. Note: The output should look exactly as shown the example above. Bold characters means user input. ...
Purchase answer to see full attachment

Tutor Answer

onesmasd
School: UT Austin

Hey I am through. Please fin...

flag Report DMCA
Review

Anonymous
Excellent job

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors