Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

=+21.6. Prove (21.9) by Fubini's theorem.

Answered: 1 week ago