A store needs your skills to assist managing its inventory. The inventory consists of items from various
Fantastic news! We've Found the answer you've been seeking!
Question:
A store needs your skills to assist managing its inventory. The inventory consists of items from various categories such as fruits, canned fruits and vegetables, beverage, cleaning items etc.
For this exercise, we are dealing only with fresh and canned vegetables. The manager needs a system to assist managing the inventory by:
- Adding new items
- Removing new items
- Discontinuing all items
- Comparing items based on amount of sales
- Sorting and list items based on items expiration dates
Requirements:
- You will implement a program in Java that will allow the manager to perform the following functions:
- Create the inventory with 10 items
- Create the inventory with initially 100 items
- Add one item
- Add a sub-list of items
- Remove one item
- Remove a sub-list of items
- Discontinue a category of items
- Compare the sales of two items, return a Boolean
- List the top 5 items with the most sales
- List the items that have passes the expiration dates
- Express the complexity of functions 9 and 10 using the Big O notation.
Hints:
- Reuse the methods available in the Array List class and its superclasses.
- Focus only on the essential attributes requires to implement the exercise (for instance we do not need the origin of the items or the prices. But you need to know the sales amount and the expiration date). You can compare expiration dates with the current date to determine if the item expired.
- Use inheritance in order to generalize and reuse the code for different types of items
- Test each method by creating a simple program first and then integrate the tested methods into the final code.
Please specify the items for the store
carrots
corn
broccoli
caned peas
string beans
Related Book For
Corporate Finance
ISBN: 978-0077861759
10th edition
Authors: Stephen Ross, Randolph Westerfield, Jeffrey Jaffe
Posted Date: