Question: programming language Write the Warehouse class definition for warehouse dispatcher instances. In the warehouse, a product is characterized by: - a unique code (an integer)
Write the Warehouse class definition for warehouse dispatcher instances. In the warehouse, a product is characterized by: - a unique code (an integer) - a name (a string) - a price (a double) - a producer (a string) - a production country (a string) - an expiration date (a string with a "dd/mm/ /yyy format) The warehouse dispatcher knows all the products in the warehouse (the number of products is limited to 1000). The methods of the Warehouse class are used to a) add a new product in the warehouse b) cancel a product, given its code c) display all the products, with their information in alphabetical order d) find all the products manufactured in a specified country and having the price between two limits minPrice and maxPrice e) display all the expired products in a given date, sorted by expiration date f) display the cheapest manufacturer for a given product, given its name Organize the class of products, called ProductWarehouse, in the most useful way you consider. Test all the defined methods, by calling them from the main method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
