Question: Come up with a C++ class declaration called SavingsAccount with the folkowing information 1. Open aceount (with an initial deposit). This is called to put

 Come up with a C++ class declaration called SavingsAccount with thefolkowing information 1. Open aceount (with an initial deposit). This is called

Come up with a C++ class declaration called SavingsAccount with the folkowing information 1. Open aceount (with an initial deposit). This is called to put initial values in dollars and cents. For that, have two constructors for SavingsAccount: One constructor is the default constructor that sets both dollars and cents to 0. Th other constructor has 2 parameters that set dollars and cents to the indicated values 2. Make a deposit. A function that will add value to dollars and cents 3. Make a withdrawal. A function that will subtract values from dollars and cents Show current balance. A function that will print dollars and cents Data Member Data) 1. dollars 2. cents Give the implementation code for all the member functions. NOTE: You must perform normalization on cents. This means that if cents is 100 or more, it must increment dollars by the appropriate amount. Example: if cents is 234, then dollars must be increased by 2 and cents reduced to 34 Write code in your main function that will create an object called bank1. The code will then initially place $200.50 in the account. The code will deposit $40.50 and then withdraw $100.98. It will print out the final value of dollars and cents. The following output should be produced: Dol lars140 cents-2 Change the program to allow the user to input the initial values, deposit and withdrawal Example of input/output Please input the initial dollars 402 Please input the initial cents 78 Mould you like to make a deposit? Y or y for yes Please input the dollars to be deposited 35 Please input the cents to be deposited 67 Mould you like to make a deposit? Y or y for yes Please input the dollars to be deposited 35 Please input the cents to be deposited 67 Mould you like to make a deposit? Y or y for yes

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!