Question
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
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