[Solved]Java Please 319 Lab Output Groupings Vending Machine Vending Machine Serves Chips Fruit Nu Q37197646
In Java Please 3.19 LAB: Output with groupings: Vending machineA vending machine serves chips, fruit, nuts, juice, water, andcoffee. The machine owner wants a daily report indicating whatitems sold that day. Given boolean values (true or false)indicating whether or not at least one of each item was sold (inthe order chips, fruit, nuts, juice, water, and coffee), output alist for the owner. If all three snacks were sold, output”All-snacks” instead of individual snacks. Likewise, output”All-drinks” if appropriate. For coding simplicity, output a spaceafter every item, including the last item. Ex: If the input isfalse false true true true false, output: Nuts Juice Water Ex: Ifthe input is true true true false false true, output: All-snacksCoffee Ex: If the input is true true true true true true, output:All-snacks All-drinks Ex: If the input is false false false falsefalse false, output: No items

LAB 3.19.1: LAB: Output with groupings: Vending machine 0/10 ACTIVITY LabProgram.java Load default template… 1 import java.util.Scanner; public class LabProgram 4 public static void main(String[] args) Scanner scnr – new Scanner (System.in); boolean chipsSold; I Snack items boolean fruitSold: boolean nutsSold boolean juiceSold; II Drink items boolean waterSold; boolean coffeeSold 7 10 12 13 chipsSold scnr.nextBoolean); fruitSold scnr.nextBolean) nutsSold scnr.nextBoolean); 15 16 17 18 19 juiceSold scnr.nextBoolean); waterSold scnr.nextBoolean ) coffeeSold scnr.nextBoolean; Show transcribed image text LAB 3.19.1: LAB: Output with groupings: Vending machine 0/10 ACTIVITY LabProgram.java Load default template… 1 import java.util.Scanner; public class LabProgram 4 public static void main(String[] args) Scanner scnr – new Scanner (System.in); boolean chipsSold; I Snack items boolean fruitSold: boolean nutsSold boolean juiceSold; II Drink items boolean waterSold; boolean coffeeSold 7 10 12 13 chipsSold scnr.nextBoolean); fruitSold scnr.nextBolean) nutsSold scnr.nextBoolean); 15 16 17 18 19 juiceSold scnr.nextBoolean); waterSold scnr.nextBoolean ) coffeeSold scnr.nextBoolean;
Expert Answer
Answer to In Java Please 3.19 LAB: Output with groupings: Vending machine A vending machine serves chips, fruit, nuts, juice, wate… . . .
OR

