You are required to design and develop an application to support the administration of a warehouse in order to be able to keep track of inventories. They would like the application to help them in the...








You are required to design and develop an application to support the administration of a warehouse in order to be able to keep track of inventories. They would like the application to help them in the day-to-day requirements of adding and remove stock and reporting current levels and the total monetary value of the inventory. 1. Create an Inventory class to be used to instantiate inventory items in the warehouse. Each inventory item should consist of the following attributes: • A unique inventory ID (required) • A short description of the inventory item (required) • The date of acquisition of the item (hint: use Java’s Date class) (required) • The cost price of the item (optional or set later) • The recommended selling price for the item (optional or set later) • The total amount available in stock, for this item (optional or set later) Note: The attributes marked as ‘Optional’ may not be immediately available during creation of the inventory item. Thus, the program should allow the user to create an item without these attributes and provide the possiblity to update them at a later stage. 2. Include appropriate validation in the classes, at least by taking care of the following: a. Acquisition date cannot be in the future b. The cost price of an item cannot be less then zero c. The selling price of an item cannot be less than zero d. The total amount available in stock cannot be less than zero 3. The warehouse would like to distinguish between two types of inventory items; Consumables and Hardware. For Consumables, we would like to store information such as Expiry Date, Capacity (typically a number) and Units (such as “ml”, “GB”, “Kg”, etc...). For Hardware, there is no capacity and expiry date. However, we would like to keep track of dimensions (width, length and height), and weight. Prepare the necessary Java structure to accomodate this. You need to make appropriate use of a hierarchical structure. 4. The warehouse would like to have a Java Application to be able to: a. Add items to the inventory (should ensure ID is unique!) b. Increase the level of stock for a particular inventory item (upon stock arrival) c. Decrease the level of stock for a particualr inventory item (upon any sale) d. View all stock, their respective quantity and total selling price e. Provide a financial summary (Total Cost Price and Total Selling Price) of current stock f. Save current stock level to a file g. Read current stock level from a file h. Exit the application
Apr 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here