Please use C++ PROGRAMMING LANGUAGE to answer the following question Payment Management System (personal bookkeeping system) where individuals (more than one) can make multiple payments. The ability to pay for the transactions is related to banking module of the project. Three modules: Person, Payment and Account. Account module should be integrated in the Person’s module. Account class’ object need to be data member of Person class.
Please use C++ PROGRAMMING LANGUAGE to answer the following question
Payment Management System (personal bookkeeping system) where individuals (more than one) can make multiple payments. The ability to pay for the transactions is related to banking module of the project.
Three modules: Person, Payment and Account. Account module should be integrated in the Person’s module. Account class’ object need to be data member of Person class.
- Payment
Define a class named Payment that contains member variables of type float that stores the amount of the payment, string that store the type of payment (bills, shopping, grocery, fuel, medicine, others) and appropriate accessor and mutator methods. Also create a member function named paymentDetails that outputs an English sentence that describes the amount and type of the payment.
Next define a class named CashPayment that is derived from Payment. This class should redefine the paymentDetails function to indicate that the payment is in cash. Include appropriate constructor(s).
Define a class named CreditCardPayment that is derived from Payment. This class
should contain member variables for the name on the card, expiration date, and credit card
number. Include appropriate constructor(s). Finally, redefine the paymentDetails function
to include all credit card information in the printout.
Test: Create a main method that creates at least two CashPayment and two
CreditCardPayment objects with different values and calls paymentDetails for each.
B. Person ** IMPORTANT **
Create another class named Person that contains member variables of type string that store the person’s name, long to store identification number and appropriate accessor, mutators and constructor.
Add data member, an object of Account class and appropriate accessor and mutator functions.
Test: Create an instance of Person class and call its methods to validate the functionality.
C. Account ** IMPORTANT **
Create another class named Account with derived classes saving and checking accounts.
Test: Create an instance of Account class and call its methods to validate the functionality.
D. Main
In main function, create multiple person and payment instances and store each payment detail of a person in a multi dimensional array/
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images