Menu

Please Code Java Hired Favorite Restaurant Create Food Nutrition App Customers Use Get Far Q43866541

Please code in Java

You have been hired by your favorite restaurant to create a foodnutrition app for their customers to use. Before you get too far,the owner wants you to create a quick prototype. Your app shouldoutput a food name and the number of calories, then ask thecustomer how many they want. You need to ask them for 3 menu items.Once they tell you the quantity for the three menu items, you willoutput the meal’s total calories. Behind the scenes, you are goingto create a Food class. Your Food class should use name andcalories in the constructor (in that order!). You should creategetters and setters for these variables. You also need a toStringmethod that will be used in the line before you ask for thequantity. In addition to the Food class, you will have a FoodRunnerclass where you will have your main method. In here, you willcreate your three foods and ask for the quantities. After that, youcan use the quantities to calculate and output the total. Sampleoutput: Hamburgers have 600 calories. How many would you like? 2French Fries have 350 calories. How many would you like? 1 Cokehave 200 calories. How many would you like? 2 Your meal will have atotal of 1950 calories

Expert Answer


Answer to Please code in Java You have been hired by your favorite restaurant to create a food nutrition app for their customers t…

OR