Question: In Java 12.7 LAB: Hot/cold drinks (branches, Strings) Wnte a program that takes as input a drink name, and outputs whether the drink is hot

In Java  In Java 12.7 LAB: Hot/cold drinks (branches, Strings) Wnte a program

12.7 LAB: Hot/cold drinks (branches, Strings) Wnte a program that takes as input a drink name, and outputs whether the drink is hot or cold. Valid drink names. coffee, tea, hot chocolate water, juice, milk. The first three are hot, the last three cold For water, also output (add ice): For other names, output 'invalid drink If the input is coffee, the output is hot If the input is water, the output is: cold (add ice) LAB 0/10 | 12 7.1: LAB Hot/cold drinks (branches, Strngs) ACTIVITY ries provided by your instructor Drinks.java Download Drinks java Load default template.. 1 import javs-uti1.Scanner; 3 public class Drinks ( 4 public static vold main(Stringtl ares) $ Scanner scnr n new Scanner (System.In)i /" Type your code here. /

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!