Question: I need help with java. I am sharing the starter code. public class Main { public static void main(String[] args) { System.out.println(Welcome to MoonBucks Coffee

I need help with java. I am sharing the starter code.

public class Main {
 public static void main(String[] args) { System.out.println("Welcome to MoonBucks Coffee House"); Drink[] menu = new Drink[3]; /* Create 3 objects using the Drink class and add them to the menu array Use real data from: https://globalassets.starbucks.com/assets/94fbcc2ab1e24359850fa1870fc988bc.pdf Also, assign each drink a fictional price. */ /* Add your code here */ // Sample code to display all menu item names System.out.println("Our menu items for today include:"); for (Drink each: menu) { System.out.println(each.getName() + ": $" + each.getPrice()); } } }I need help with java. I am sharing the starter code. public

Assignment 5: Coffee Shop - OOP Basics Hide Assignment Information Instructions Classes and Objects Introduction: Moonbucks Coffeehouse is looking to upgrade their computer systems. The system will allow a user to enter various drinks into the system, then display all the items or filter the items based on calories, fat, and sugar content. Requirements: - Part 1 - Create a Drink class with all the appropriate data fields, setters, getters, and constructors. - Make sure all data fields are private. - Part 2 - Create a program that prompts the user if they'd like to filter the menu by calories, fat, or sugar content, then displays the matching results

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!