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! For this assignment you need to perform the following tasks. 1. Createa class named RetirementAccount. The class should have a class constructor thattakes the 4 variables, D, m, r, t as parameters. 2. Create

. 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 22 using nanespace std the nain entry poiet for this progrow. Execution of this prog 27ilt begie with this main function @parom orgc The comend Line urgunent court-Mch is thr nu ber of 51 : . the progrOR 32 for ergv The camond line command Line arguments provided by ier aben they storted inents, an arrpy of charcter 5returns An it votue indicating progron evit stotus,Usntey o 6 is returned to indicate srna exit and eo tue 7 s returned to indiccte o error condition int main(int args, char" argv) // test constructor 42 coutTesting class creation using constructorno-ke endk endl test getter nethods cout

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 Databases Questions!