Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just give answer. using classes ( have sets and gets for classes ) including unit tests for the classes. need a class called BankSavings Account

Just give answer.

using classes ( have sets and gets for classes ) including unit tests for the classes.

need a class called BankSavings Account -

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

add money

withdraw money

need a Class called MoneyInYourPocket

add money

withdraw money

need a Class called MarketMoney ( investment )

rate of return is a variable 4% +- 6% randomly each time we 'apply it' ( see lecture on 10/7 for how to test this )

add money

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

Create 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 the current balance 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

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions