Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ program using visual studio Instructions Build a retirement calculator program using classes ( have sets and gets for classes ) including unit tests for

C++ program using visual studio

Instructions

Build a retirement calculator program using classes ( have sets and gets for classes ) including unit tests for the classes.

Make a class for BankSavings Account -

fixed interest rate ( annual rate ) ( this should be set via a function call )

add money

withdraw money

Class for MoneyInYourPocket

add money

withdraw money

Class for MarketMoney ( investment )

rate of return is a variable 4% +- 6% randomly each time we 'apply it' ( don't need to unit test this for now, wait till next week )

add money

withdraw money ( every time you withdraw money, you get charged a $10 fee )

Build the retirement simulator.

Ask the user how old they are, and what age they want to retire.

For each asset type, get a current balance.

for every year until they retire ( loops ),

apply the return on investment or interest rate.

print savings in each type

ask for additional savings or withdrawals ( for each account type )

Once you reach the retirement age, display the balances of each type.

Also, generate a grand total, and adjust it for inflation ( fixed 2% per year )

total / ( 1.02 ^ years )

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Programming questions

Question

What are three types of firewalls?

Answered: 1 week ago

Question

=+Summarize the structure and duties of the Fed.

Answered: 1 week ago