Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 Ob jectives Your task is to design and implement the following three user requirements: Objective 1 ( Data Collection ) : Given a list
Ob jectives
Your task is to design and implement the following three user requirements:
Objective Data Collection: Given a list of books, their initial quantities, and a list of customer receipts as a text file, read the files and insert them into an appropriate data structures
Objective Inventory Management: Develop methods to allow a store employee to insert a new order for a book, remove an existing order, and search for the remaining quantity of any given book.
Objective Customer Favorites: Develop a method to determine the book that was most frequently purchased by a specific customer. This can be used as information towards suggesting future purchases for that customer.
You may use one or more data structures from those that we studied in class linked lists, stacks, queues, trees, priority queues, hash tables to implement these objectives. However, the goal is to ensure that the tasks are accomplished as efficiently as possible, which requires you to understand which data structure is suitable for which task. In particular, you will find that using a simple array will not be sufficient for getting the required efficiency, and you will have to verify this claim.
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