Question: Language C++- Write a program, implementing all the functions listed below. We just learned about class declaration, constructors, destructors and other member functions. So implement
Language C++- Write a program, implementing all the functions listed below. We just learned about class declaration, constructors, destructors and other member functions. So implement these into the program
Consolidate all as one .cpp file
Paste output at bottom of main.cpp
Theme issues: Class declaration, constructors, destructors, other member functions In addition to implementing the class, driver function main() must perform the following: Declaration Declare an instance of CreditCard with #1234567887654321 and interest rate of 1.6% Input: Ask the user for the credit card number, initial balance on this card, and monthly interest rate. Declare new object with this info or update previous object. Processes: Call a function menu that gives the users the options of Print to screen - Output the credit card #, previous balance, new charges, and interest rate. Quit - End the program New charges - Ask the user for the amount and update new charges in the object accordingly Generate Statement For this option output to the user the amount owing and the amount of the minimum payment. Pay For this option output to the user the amount owing and the amount of the minimum payment. Then ask the user the amount of money he/she will pay. Update the amount of the previous balance accordingly. Test case: Beginning balance $400; interest rate 1.5% (Print to Screen) New charges $25; new charges $75 (Print to screen) Pay minimum balance (Print to screen) Pay $200 (Print to screen)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
