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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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.

  1. 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/vector where each row contains the data of a person and each column contains sum of payment amount of a particular type. Display summary of spending per person per category.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY