you will be provided with the skeleton project which you will develop into a simple Inventory...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
you will be provided with the skeleton project which you will develop into a simple Inventory Management System. The classes and methods in the classes are created for you. You are required to make changes to the implemented methods to make it work as expected. You are provided with 2 classes and an interface. 1. Item - This class must be implemented based on the class diagram below. You are required to create the necessary attributes, getters and setters for the attribute and appropriate constructors. 2. InventoryManagementInterface - This interface needs no change. It contains 5 methods which will be implemented by the InventoryManagement System class. The details about implementing the methods are provided above each method in the interface. 3. InventoryManagement System - Should implement the InventoryManagementinterface and override all the methods defined in the interface following the instructions given above for each of the methods. itemId: String itemName: String -availableQuantity: int -price: double Item +Item(String itemId, String itemName, int availableQuantity, double price) getters and setters for each of the attribute above - items: Items[] -itemCount: int = 0 <<Interface>> InventoryManagementInterface addItemQuantity(String itemId, int quantity): Item addItem(String itemId, String itemName, int quantity, double price): Item + reduceltemQuantity(String itemid, int quantity): boolean +lookupitem(String itemId): Item + listItems(): Items[] Inventory Management System + addItemQuantity (String itemid, int quantity): Item + additem(String itemid, String itemName, int quantity, double price): Item + reduceItemQuantity(String itemId, int quantity): boolean + lookupitem(String itemId): Item listitems(): Items[] Question 2: Briefly explain what concepts of OOPS did you learn by implementing the above code. It could be multiple features of Object-Oriented Programming. Just write the feature name and where in the above code have you used it. you will be provided with the skeleton project which you will develop into a simple Inventory Management System. The classes and methods in the classes are created for you. You are required to make changes to the implemented methods to make it work as expected. You are provided with 2 classes and an interface. 1. Item - This class must be implemented based on the class diagram below. You are required to create the necessary attributes, getters and setters for the attribute and appropriate constructors. 2. InventoryManagementInterface - This interface needs no change. It contains 5 methods which will be implemented by the InventoryManagement System class. The details about implementing the methods are provided above each method in the interface. 3. InventoryManagement System - Should implement the InventoryManagementinterface and override all the methods defined in the interface following the instructions given above for each of the methods. itemId: String itemName: String -availableQuantity: int -price: double Item +Item(String itemId, String itemName, int availableQuantity, double price) getters and setters for each of the attribute above - items: Items[] -itemCount: int = 0 <<Interface>> InventoryManagementInterface addItemQuantity(String itemId, int quantity): Item addItem(String itemId, String itemName, int quantity, double price): Item + reduceltemQuantity(String itemid, int quantity): boolean +lookupitem(String itemId): Item + listItems(): Items[] Inventory Management System + addItemQuantity (String itemid, int quantity): Item + additem(String itemid, String itemName, int quantity, double price): Item + reduceItemQuantity(String itemId, int quantity): boolean + lookupitem(String itemId): Item listitems(): Items[] Question 2: Briefly explain what concepts of OOPS did you learn by implementing the above code. It could be multiple features of Object-Oriented Programming. Just write the feature name and where in the above code have you used it.
Expert Answer:
Answer rating: 100% (QA)
Solutions Step 1 Step1 Understand the Given Problem Statment and then DO the Coding Itemjava package comchegg public class Item private String itemId private String itemName private int availableQuant... View the full answer
Related Book For
Auditing A Practical Approach with Data Analytics
ISBN: 978-1119401742
1st edition
Authors: Raymond N. Johnson, Laura Davis Wiley, Robyn Moroney, Fiona Campbell, Jane Hamilton
Posted Date:
Students also viewed these programming questions
-
Fickel Company has two manufacturing departments-Assembly and Testing & Packaging. The predetermined overhead rates in Assembly and Testing & Packaging are $16.00 per direct labor-hour and $12.00 per...
-
Background You have been asked to develop the logic for a version of a card game that has aspects similar to the popular card game Uno. The working title for the game is Quattro (as it has four...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
) A local firm employs 20 full-time professionals. The budgetedannual compensation per employee is $81,000. The budgeted averagechargeable time is 500 hours per client annually. All professionallab 2...
-
If you walk at 1 km/h down the aisle toward the front of a train that moves at 60 km/h, what is your speed relative to the ground?
-
To the left of Point B the long cable ABDE rests on the rough horizontal surface shown. Knowing that the mass per unit length of the cable is 2 kg/m, determine the force F when a= 3.6 m. D. h =4 m B
-
What are high-yield bonds? What is their role in financing firms?
-
Your company has earnings per share of $4. It has 1 million shares outstanding, each of which has a price of $40. You are thinking of buying TargetCo, which has earnings per share of $2, 1 million...
-
estion list Question 2 Question 3 K Suppose you want to purchase a $297,000 home, and you have the required $57,000 down payment in savings. Complete the table below for a mortgage option presented...
-
20. What is the IPv6 address of the computer making the DNS AAAA request? This is the source address of the 20th packet in the trace. Give the IPv6 source address for this datagram in the exact same...
-
Kiddie Corp. uses a plantwide predetermined overhead rate based on machine - hours. The estimated costs for this rate were total fixed manufacturing overhead cost of $ 1 14 , 0 0 0 , variable...
-
The net income available to stockholders is $230,000. The beginning number of common shares outstanding was 100,000. The ending number of common shares outstanding was 150,000. What is the earnings...
-
Grant & Krewstown Inc. also records $420,000 in Net Income and pays dividends of $14,000. Assuming this is the company's first year of operations, what is Total Stockholders' Equity?
-
As companies evolve, certain factors can drive sudden growth. This may lead to a period of nonconstant, or variable, growth. This would cause the expected growth rate to increase or decrease, thereby...
-
7. The Marginal Profit is given by the formula m(x) = (2x-5)(x- 2x + 1)1/2 where x is the number of units produced. What is the Profit equation and what is the profit at x = 1? Clearly type all...
-
William Smith, the controller of Oriole Office Supply Company, has reviewed the expected useful lives and salvage values of selected depreciable assets at the beginning of 2028. Here are his...
-
A parallel-plate capacitor has a capacitance of 1.8 F with air between the plates. The capacitor is connected to a 9.1-volt battery and charged. The battery is then removed. When a dielectric is...
-
If you want to solve a minimization problem by applying the geometric method to the dual problem, how many variables and problem constraints must be in the original problem?
-
Which of the following represents an example of an IT application control? a. The assistant controller performs a monthly bank reconciliation and follow-up of unexpected outstanding items. b. The...
-
Identify a risk of fraudulent financial reporting in the revenue process. Describe a sound internal control that would detect and correct the misstatement on a timely basis.
-
When sending positive confirmations, which of the following would not be an appropriate way to address nonresponse by a customer? a. Search for evidence of subsequent cash receipt from the customer....
-
Distinguish between a multiple-step and a single-step income statement. Which format results in the higher amount of net income?
-
Refer to the Action feature, Channel Stuffing, on page 19. Suppose that performance bonuses based on revenues were eliminated and this behavior ceases. Would you favor eliminating performance-based...
-
Refer to the Action feature, Palliative Care Unit, on page 5. What type of costs in a hospital might be difficult to split between the PCU and non-PCU areas? What type of costs would be easy to...
Study smarter with the SolutionInn App