Question: JAVA 12.10 LAB: Hot/cold drinks (branches) Write a program that takes as input a dink name, and outputs whether the drink is hot or cold

JAVA
12.10 LAB: Hot/cold drinks (branches) Write a program that takes as input a dink 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 oold For water also output (add ice)' For other names, output "nvalid drink if the input is coffee, the output is hot If the input is water the output is cold (add ice) ACTIVITY | 12101 LAB HOU cold drinks branches) Fies provided by your instructor 0/10 Drinks.java Download Drinks.java Load default template. 1 import javs.uti1.Scanner 3 publir ciass Orinks 4 public static vo1s in(stringt args) t Scanner senr-nes Scanner(5ystes.in /Type your cope her. e Submit mode Run your program as otten as you'd like, before submitting for grading Below type any needed input values in the first box then dick Run program and observe the programs output in the Develop mode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
