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...
-
Two consolidated-drained triaxial tests were performed on specimens of the same clay, with the following results at failure: Test 1: '1 = 73.4 psi, '3 = 26.6 psi Test 2: '1 = 48.0 psi, '3 = 12.0 psi...
-
Consider the Cobb Douglass utility function for two privately produced and consumed normal goods, 2 and 2: (1) U = f(1, 12) = 112. Assume a # 5, and a +8+1. The consumer is subject to the budget...
-
In the third system of pulleys, 4 pulleys are arranged. Find the effort required to lift a load of 1 kN if the efficiency of the pulley system is 80%.
-
Here is the income statement for Eberle, Inc. Additional information: 1. Common stock outstanding January 1, 2014, was 32,000 shares, and 40,000 shares were outstanding at December 31, 2014. 2. The...
-
Discuss three changes written into the Constitution in 1789 that changed the government from what it was under the ArticIes of Confederation?
-
Of all the price analysis methodologies that exist, which are the foundational methods. Longing & Shorting. Trading & Investing. Volume & sentiment. On-chain & Macroeconomic. Mean reversion &...
-
Plane polarized light is incident on a piece of quartz crystal cut parallel to optic axis. Find the least thickness of the crystal for which the ordinary and the extraordinary rays 1.5442 and HE...
-
Pluralism and the absence of discrimination and prejudice in policies and practices are two important hallmarks of _________. (a) the glass ceiling effect (b) a multicultural organization (c) quality...
-
Trends in the new workplace include which of the following? (a) More emphasis by managers on giving orders. (b) More attention by organizations to valuing people as human assets. (c) Less teamwork....
-
Kim Davidovic owns and operates a small retail store selling the outdoor clothing of a Canadian manufacturer to a predominately university-student market. Lately, a large department store outside of...
-
Two dimensions that determine the level of environmental uncertainty are the number of factors in the external environment and the ____________ of these factors. (a) location (b) rate of change (c)...
-
Stories told about an organizations past accomplishments and heroes such as company founders are all part of what is called the_________ culture. (a) observable (b) underground (c) functional (d) core
-
What is concurrency control? Why Concurrency control is needed?
-
Create an appropriate display of the navel data collected in Exercise 25 of Section 3.1. Discuss any special properties of this distribution. Exercise 25 The navel ratio is defined to be a persons...
-
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....
-
Companies are facing a great amount of change in every facet of their operations today. To remain competitive, companies must keep abreast of current developments in several areas. You recently got...
-
For each of the situations listed, identify the primary standard from the IMA Statement of Ethical Professional Practice that is violated (competence, confidentiality, integrity, or credibility.)...
-
Sustainability involves more than just the impact of actions on the environment. The triple bottom line recognizes that a company has to measure its impact on its triple bottom line for its long-term...
Study smarter with the SolutionInn App