Question: For this assignment you need to perform the following tasks. 1. Create a class named RetirementAccount. The class should have a class constructor that takes
For this assignment you need to perform the following tasks. 1. Create a class named RetirementAccount. The class should have a class constructor that takes the 4 variables, D, m, r, t as parameters. 2. Create a default class constructor as well. This constructor can set all of the private member variable values to 1.0. 3. You must have getter and setter methods for all 4 of the member variables of the class. The methods will be named set_D(), set_m(), set_r(), set_t() and get_D(), get_m(), get_r(), get_t(), respectively. 4. Create a member function named tostring(). This function will not take any parameters as input. It returns a string that represents the 2 values/settings of the RetirementAccount class. See the example output below for the format of the string to be returned. 5. Create a member function named calculateRetirementSavings(). This function should implement the rst formula to calculate the total amount of savings S the account will generate. This function has no parameters as inputs, and it returns a double amount (the amount of savings) as its result. 6. Create a member function named planRetirementDeposits(). This function takes a double parameters S as input, which is the savings goal you wish to achieve. This function should implement the second equation given above. The function returns a double result, D which is the amount of money that should be deposited each period to meet the savings goal S.
*** put function documentation headers for each and every function in your program..
C++ please, I attached pictures of the starting template! 


. iki-scription Assipernt 2, practice using C++ etos ses ter 1e encapsulate a retireeent plonming object, that con set 11deposits, the leterest rote, and tiee in years we hove ito sove 12rr 13do planming to detereine how much we oeed to sovt in orden to rosh 24 rettrenent goot the ount of pertofic retirement occount plonmer object con colculate retirneet sov retireneet sovings and ca 16 intlade ciostrean 18 :,include ,'include cionanm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
