Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ help: I saw some answers on chegg regarding the same question but they are similars NOT the same. I need to have a code

C++ help: I saw some answers on chegg regarding the same question but they are similars NOT the same. I need to have a code printing the same exact OUTPUT as shown in the picture and following the same instructions.
Thank you in advance. image text in transcribed
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, an aniterest 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)", where P is the amount initially saved, i is the interest rate per year, and n is the number of years. Additional information: 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 interst 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. 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, an aniterest 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)", where P is the amount initially saved, i is the interest rate per year, and n is the number of years. Additional information: 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 interst 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Explain how central canals and perforating canals are related.

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago

Question

What is database?

Answered: 1 week ago

Question

5. Our efficiency focus eliminates free time for fresh thinking.

Answered: 1 week ago