[Solved]Language Java Objective Create Inventory Management System Ims Ims Contain Catalog Items Q37055444
########## LANGUAGE: JAVA##########
Objective: Create an Inventory Management System (IMS). The IMSwill contain a catalog of items (stationery Items) that can bemanaged, viewed, and purchased. Components detail: The InventoryManagement System (IMS) has two main components a) inventorymanagement component b) inventory viewing and purchasing component.Inventory Management Component The inventory management componentshould avail an admin user with the following functionalities: 1.Ability to view, add, update, and delete items from the inventory.2. (This could be a bonus functionality) Ability to login to thesystem as admin role. This is the only role that would require auser to login to the system. The system would just have apredefined set of user name and password which allow them to loginas an admin. Inventory Viewing and Purchasing Component Theinventory viewing and purchasing component allows any user (nologin necessary) to perform the following: 1. Search and view foritems. Searching capabilities could be limit to the name of theitem or productId. 2. Purchase items. a. This action should ask forthe quantity. Warning, quantity validation would be necessary. b.It should also show the total cost of the purchase. The amountshould be computed using items’ unit cost, quantity and 7% salestax. c. This action should also update the inventory to reduce itby the quantity that was purchased. How to Calculate the ordertotal Implementation Details Command line Menu: Main Menu: 1) Admin2) User 3) Exit User could select an option from this list. If userselect 1, it should display Admin Menu with the following options:Admin Menu: 1) Add new item 2) Search and update item 3) Search anddelete Implements these options for admin personnel. In main menu,if user select 2 from the Main Menu it should display user menu.User menu should contains the following options: User Menu: 1)Search item 2) Place order (or purchase item) Implement theseoptions for user activities.
Note: Make sure you implement the project by followingobject-oriented design paradigm Populate the initial inventorycatalog: You have to read item data from a file and populate theinitial catalog. language required is java
##########THIS IS THE SHELL##########
import java.util.Scanner;
public class FinalProjectShell {
private Scanner input = new Scanner(System.in);
private Item[] items = new Item[100];
public static void main(String[] args) {
FinalProjectShell foo = newFinalProjectShell();
foo.mainMenu();
}
public void mainMenu() {
// display menu and ask for userselection (validate)
int option = input.nextInt();
switch (option) {
case 1:
// verify theadmin login
// if logincorrect go to the admin menu
adminMenu();
break;
case 2:
userMenu();
break;
case 3:
// confirm theywant to exit and then exit
}
}
public void adminMenu() {
// display menu and ask for userselection (validate)
int option = input.nextInt();
int found = -1;
switch (option) {
case 1:
addItem();
break;
case 2:
updateItem(found);
break;
case 3:
deleteItem(found);
break;
case 4:
return;
}
}
public void userMenu() {
// display menu and ask for userselection (validate)
int option = input.nextInt();
int found = -1;
switch (option) {
case 1:
displayAllItems();
break;
case 2:
purchaseItem(found);
break;
default:
return;
}
}
private void displayAllItems() {
}
public int searchForItem() {
return -1;
}
private void deleteItem(int index) {
// TODOAuto-generated method stub
}
private void updateItem(int index) {
// TODOAuto-generated method stub
}
private void addItem() {
// TODOAuto-generated method stub
}
private void purchaseItem(int index) {
}
}
class Item {
private String id;
private String name;
private double price;
private int quantity;
//add constructors
//add get and set methods
}
Expert Answer
Answer to ########## LANGUAGE: JAVA########## Objective: Create an Inventory Management System (IMS). The IMS will contain a catal… . . .
OR

