Write a C++ program to manage a Point of Sale System for a Supermarket. The main user is an employee at the Supermarket.

Build Specifications

1.The system should load a catalog of all items that the store sells.

2.A user can search the inventory: The user of the system can search the inventory by using the name of the item or by category.

3.A user can sell items once they are found. Or can sell items by navigating through a tree of categories.

4.A user can return an item that has been bought into the inventory.

5.Add new items to the inventory.

6.The user can update existing items.

The program must have the following properties

  • You should do error handling (Ex: An employee cannot sell an item that is sold out)
  • You should use inheritance, and polymorphism. Example: You can design a generic item class, then design derived classes for different kinds of items. The item class may have the following data members: Name (string), Category (string), price (floating number), quantity (integer number). An example of an inherited class can be Fruits, where you can add Best By (date time).

Also, design a menu (should still appear until the exit option is chosen) in the Main program that has the following options implemented to test your classes' functionality

1. Search Inventory
2. Sell items.
3. Return items.
4. Add new items to inventory
5. Update items.
6. Exit

Extra Credit:

Show a list of items that will expire within a certain time. For example, show all the items that will expire in 10 days.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.