Question: Write a simple C++ program to help manage a retail shop as below: The shop has name, list of selling products, and need to record

Write a simple C++ program to help manage a retail shop as below: The shop has name, list of selling products, and need to record its total revenue (sum of all customers bill values). Each product has name (string), id (integer) and price (double). The shop can add a new product to its selling list (given name, id and price of the product). The shop manage each customer by name, id, last bill and total spent amount (sum of all bills values including the last one). The shop can record a new customer with given name and id, and it has a function to calculate and print out the bill for each customer with the given customers id and list of product id. Each bill should have value and list of the bought products. Implement classes with suitable attributes and methods to satisfy the above requirement. Test them in main() with appropriate output messages. Note: to save time, attributes can be declared as public.

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!