Write My Bid on top before putting your bid.
Please ensure a standard of programming correctness, variable naming, placement of methods, cleanliness, indentation and camelCase within the code. Below I have attached a functionality table to assist with part 2, please let me know if you would like this in PDF form or if you have any other questions. Thank you.
public boolean insertProduct(String productString)
The boolean will indicate whether the Product was successfully created. Returns false if the product id already exists or if the StationerySystem is full. You will need to parse the Strings and create objects from them.
The productStrings will come in the following formats: PDT,id,name,quantity
STN,id,name,quantity,colour TECH,id,name,quantity,powerConsumption,warrantyPeriod FURN,id,name,quantity,weight,warehouse
public int inStock(int productId)
This should return the quantity of the product in stock, or -1 if the product doesn’t exist
public boolean sell(int productId)
This method will reduce the quantity of the item by 1 and return true else returns false if the quantity is 0 or the productId doesn’t exist
public boolean restock(int productId, int quantity)
This method will increase the stock of a particular product by the quantity specified, if the productId does not exist it should return false, else true. Assume quantity is always a positive number
public void printInventory()
This should print the store inventory in the following format and in the order they were loaded into the system:
Type Id Name Quantity Price WAREHOUSE
STN 0 Pencil 100 STN 1 A4 500 Pages 10 STN 2 Sharpener 10
public void closeStore()
This should empty the StationarySystem and restore it to an empty state
Được trao cho:
My bid: I am experienced in java programming and can complete this within 12 hours. Please contact me so we can discuss further details like what each specific task is.