Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago

Question

The models used to analyse different national cultures.

Answered: 1 week ago

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago