Unordered List Upload UML Diagram for all classes, Design (Algorithm) for all me
ID: 3569553 • Letter: U
Question
Unordered List
Upload UML Diagram for all classes, Design (Algorithm) for all methods, Item class file (.java), Hardware Store Class file (.java) and the main method - Driver file (.java).
The program is to keep track of a hardware store's inventory. The store sells various items. The item information is as follows: item ID ("4444"), item name ("Circular Saw"), quantity ordered (150), quantity in store (150), quantity sold (40), manufacturer's price of the item (45.00) and store's selling price(125.00).
The information will be read from a file (HardwareStore.txt).
Program is to use an array of objects. Assume there is a maximum of 25 inventory items. After all the data has been read from the file Sort the array of objects by ItemID. Must use binary search when looking for an item in the store.
The Hardware Store is a menu-driven application which gives the user the following options:
Determine if an item is in the Store - Use Binary Search
Sell an item - be sure to check if there is sufficient stock available to sell the item - this operation should update all appropriate columns (data members) - Use Binary Search
Add more inventory stock - Use Binary Search
Print the formatted report (see below)
Quit - write the data to an output file (may choose to update the same file or create a new one )- note the file will now be in order by itemID
Total Inventory is the total selling value of all the items currently in the store.
Initially the quantity in the store is the same as the quantity ordered and the quantity sold is 0.
File contains the following data (item ID, item name, quantity ordered, manufacturer's price and selling price).
Formatted Report (sample):
Friendly Hardware Store
ItemID Item Name Qty Ordered Qty in Store Qty Sold Manuf. Price Selling Price
1111 Dish Washer 20 0 20 250.50 550.50
Explanation / Answer
contact on timacs12@gmail.com
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.