Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!