Question: Declare the following classes for C++ Language of the example bellow: Ferdinando Persona owns a bookstore. To control the operation of this, he keeps a

Declare the following classes for C++ Language of the example bellow:

Ferdinando Persona owns a bookstore. To control the operation of this, he keeps a record of customers, invoices issued, book purchases made (including books belonging to collections). The customer register is created whenever a new customer appears and contains the number of the citizen card, the TIN, the phone number, name, address, in addition to the total spent on purchases since the first time (it adds up, as the customer has a new entry). Invoices contain the date, the customer's TIN and the total paid. Purchases contain the date, description of the book and the amount paid. The description of the books contains the title, the author (s), the collection to which it belongs (if it belongs to any), the publisher and the ISBN-13 (number with 13 digits). A) Class declaration (only the .h file, detailed) to define the bookstore (all necessary attributes and methods, including getters and setters) B) Class declaration (only .h files, detailed) to describe the books and collections (all necessary attributes and methods, including getters and setters)

C) Definition of the necessary methods for (only the .cpp file, indicate in which file the method should appear and only detail the method):

- List the books purchased and the total, saving to a file

- Identify which collection sold the most books Don't forget to include the necessary #includes in the .h files.

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!