Question: 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

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 PANNA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!