Java Problem A shop sells beverages. A beverage has a brand, the ingredients, a codebar number, price, production date and expiration date. A beverage belongs to a company that has a name, an address, a phone number and an email. The shop employees want to check automatically the stock of beverages. All expired or sold beverages need to be eliminated. Implement the Shop, Beverage and Company classes. Implement the needed interfaces and methods for the classes. The shop has a method which specifies how many times does each ingredient appear in the whole collection of beverages. Create a main method which tests the program with relevant data based on data which is read from a file and output the beverages which are out of stock in a file
Java Problem
A shop sells beverages. A beverage has a brand, the ingredients, a codebar number, price, production date and expiration date. A beverage belongs to a company that has a name, an address, a phone number and an email. The shop employees want to check automatically the stock of beverages. All expired or sold beverages need to be eliminated. Implement the Shop, Beverage and Company classes. Implement the needed interfaces and methods for the classes. The shop has a method which specifies how many times does each ingredient appear in the whole collection of beverages. Create a main method which tests the program with relevant data based on data which is read from a file and output the beverages which are out of stock in a file.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images