I am trying to create a vending machine scenario in Java where it makes coffee based on the below options
size - small, medium, large
decoction - light, medium, strong
Based on the options provided by the user, milk, sugar, decoction quantities are decided to make the final product.
eg:
1) size = small and decoction = strong then
milk = 2.5 units; sugar = 1unit; decoction = 2.5 units
2) size = small and decoction = light then
milk = 4 units; sugar = 1unit; decoction = 1 units
Could you please suggest a proper way to implement this
Aucun commentaire:
Enregistrer un commentaire