Question: c + + CreditCard is a class with two double * data members pointing to the amount due and interest rate of the credit card,

c++ CreditCard is a class with two double* data members pointing to the amount due and interest rate of the credit card, respectively. Two doubles are read from input to initialize myCreditCard. Write a copy constructor for CreditCard that creates a deep copy of myCreditCard. At the end of the copy constructor, output "Produced a new CreditCard object" and end with a newline.
Ex: If the input is 65.003.00, then the output is:
Produced a new CreditCard object Initial amount due: $65.00 with 4.00 interest rate Produced a new CreditCard object After 1 month(s): $325.00 After 2 month(s): $1625.00 After 3 month(s): $8125.00 After 4 month(s): $40625.00 After 5 month(s): $203125.00 Custom value interest rate $65.00 with 3.00 interest rate

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!