Question: a . What is the appropriate data structure that can be used in this case study to store the products? Justify your answer. b .

a.What is the appropriate data structure that can be used in this case study to store the products? Justify your answer.
b. What are the operations of the chosen data structure that allow the implementation of purchase and sale transactions?
c. Assume that the following products are added and removed to/from the chosen data structure (identified in subquestion 1.a) in the following order.
Add Product1
Add Product2
Add Product3
Remove a Product
Add Product4
Remove a Product
Add Product5
Add Product6
Show a snapshot of the chosen data structure after every operation.
d. What is the appropriate data structure that can be used in this case study to manage the customers at the checkout? Justify your answer.
e. What are the operations of the chosen data structure that allow a fair way to manage the checkout?
f. Assume that the following customers are added and removed to/from the chosen data structure (identified in subquestion 1.d) in the following order.
Add Client1
Add Client2
Add Client3
Add Client4
Add Client5
Add Client6
Remove a Client
Remove a Client
Show a snapshot of the chosen data structure after every operation.
g. What is the appropriate data structure that can be used in this case study to manage the suppliers? Justify your answer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!