Question
design this in C++ apply advanced classes techniques such as , polymorphism ,inheritance, etc ... Supermarket uses a computerised system to manage sale process through
design this in C++ apply advanced classes techniques such as , polymorphism ,inheritance, etc ...
Supermarket uses a computerised system to manage sale process through maintaining the stock and record of sales details.
The system covers various aspects that involve managing information about products, employees , customers, orders and invoices .
The system provides efficiency in management and speedy sales activity.
The system is used by two different users
The administrator
The customer
###The Administrator: should conduct the following task
1.Create product inventory
2.Display and search products
3.Modify products
##The customer: should be able to conduct the following
1.Display the full list of products
2.Search for products
3.Order products
4.Display invoice
General functions for the system ( Main menu, administrator menu and customer menu)
System administrator functions should include (Create, Show, Search ,Edit, Save and Delete) products
Customers functions should include ( show , search, and add products, display and print orders)
The system should create file to save and retrieve products details.
int product_number;
char product_name[50]
float product_price
float product_quantity
float tax
float product_discount
Create_product(): ask for product number and name then the price and discount if any and save to file.
Display_product(): show a list of products in tabular format
search_product(): based on product name or number search the file for a record.
edit_product(): use search function to find a specific product in edit mode to make changes.
Delete_product():remove product from file
Make order(): use search_product ot retrieve the product details or display all products. Then select specific product and the quantity.
Check if the quantity is available.
Add to new order and save it in file
Display_order(): show the total cost and display the invoice
edit_order():retrieve order and make changes. Then save and recalculate total
Main Menu 1. Administrator 2. Customer 3. EXIT Select: Ser Admin Menu Customer Menu
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started