Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use java Assignment 2 - Part 2: Java Java Write a program that asks the user a series of yeso questions about the ingredients
please use java
Assignment 2 - Part 2: Java Java Write a program that asks the user a series of yeso questions about the ingredients of an espresso based drink to determine its type. Use the diagram below to generate your list of questions. Use the terminology in the diagram, e.g. "Steamed milk", "Milk foam", "Whipped cream". Your program should output the name of the drink. CAFFE LATTE and CAPPUCCINO cannot be differentiated by ingredients alone so they can be grouped together in your output. Remember that the questions can only have yes or no as an answer. Tip: Take a few minutes to organize the drinks based on ingredients using pen and paper, this way you can determine the more appropriate questions to ask first and help narrow down the potential drinks and only later work out the if's and else's in java code) As an example if the user indicates their drink contains no steamed milk, no steamed half and half, no milk foam, and no water then we have narrowed down the drink to two possibilities: espresso or con panna. If the user further indicates there is no whipped cream we can conclude the drink is espresso. Milk foam Steamed milk Steamed milk Espresso Espresso Espresso ESPRESSO FLAT WHITE CAFF LATTE Milk foam Water Whipped cream Steamed milk Chocolate syrup Steamed milk Espresso Espresso Espresso AMERICANO CAPPUCCINO MOCHA Mikom Steamed half-and-halt Milk loam Whipped cream Espresso Espresso Espresso BREVE MACCHIATO CON PANNAStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started