Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Your program should help customers to buy product and store owner to show and update their products in the store. Use a dynamic 2D

C++

Your program should help customers to buy product and store owner to show and update their products

in the store.

Use a dynamic 2D array to store products and function for each ability of user.

Product information at least is Product ID, Product Name, Product Amount and Product Price

First the program will run as the owner. Then after the owner finishes, you will switch to the

client.

Allow the store owner to:

1- Enter the number of rows of products, and information per row. This only happens at the

beginning.

2- The product owner can:

a- Show the store info

b- Update store info

c- Finish (when the store owner finishes, you switch to the client, do not end the program

yet or youll lose all info)

2- Next: The user will now control the program as a user/customer. Display a loop that allows

the user to do one of the following:

The user is now a customer and should be able to:

a- Show the store products.

b- Select Product.

c- Select Amount to buy.

d- Get the receipt at the end of purchasing.

After the customer selects the amount he wants to buy, ask him if he wants to buy more

and repeat steps from a to c until he say no then print the receipt.

Dont forget to reduce the amount of the product he bought from the store.

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

State and explain each rule for determining out-of-control points.

Answered: 1 week ago

Question

state what is meant by the term performance management

Answered: 1 week ago