Menu

Java Work Company Warehouses Items Items Packaged Boxes Roughly Size Double Box Warehouse Q43839679

java

You work for a company that has warehouses of items.

  1. The items are all packaged in boxes that are roughly the samesize. // double box
  2. Each warehouse has some shelves in it. //Double shelve
  3. The shelves all hold the same number of boxes. // shelves ==boxes
  4. a shelf will only contain one kind of item on it, and awarehouse will have at most one shelf storing a given kind ofitem.
  5. The constructor will be given the number of shelves and thenumber of items which are held per shelf.
  6. When the warehouse is constructed, the shelves are empty. Theget methods will report back the shelf count and capacity that thewarehouse was constructed with.
  7. Your warehouse object will have a method to receive atruckload.
  8. A truckload will have only one kind of item (represented by anitem code number) as well as the number of boxes of that item.
  9. You will load as many boxes as you can of that item given theabove rules and return the number of boxes left on the truck (notloaded).
  10. Your warehouse object will have a method to ship an item.
  11. The shipment request will contain the item code as well as thenumber of boxes requested.
  12. The warehouse will ship out as many as it can, up to the amountrequested. Your method will return the number of boxes shipped ofthat item.
  13. Both the receive and ship methods will have to update theinternal tracking of items as items are received and shipped out.Different warehouses operate independently of each other and canhave similar or entirely different sets of items.
  14. Along with the shelfCount and shelfCapacity properties, youwill need 1 or more additional private properties in your class tokeep track of which item is stored at each shelf and how full eachshelf is. It is up to you to decide how to do this. Any additionalproperties you add should be private, and should not have gettersor setters.

Expert Answer


Answer to java You work for a company that has warehouses of items. The items are all packaged in boxes that are roughly the same …

OR