![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.03.2021 19:30 greenhusky
You have been hired by your favorite restaurant to create a food nutrition app for their customers to use. Before you get too far, the owner wants you to create a quick prototype. Your app should output a food name and the number of calories, then ask the customer 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 will output the meal’s total calories. Behind the scenes, you are going to create a Food class. Your Food class should use name and calories in the constructor (in that order!). You should create getters and setters for these variables. You also need a toString method that will be used in the line before you ask for the quantity. In addition to the Food class, you will have a FoodRunner class where you will have your main method. In here, you will create your three foods and ask for the quantities. After that, you can use the quantities to calculate and output the total. Sample output: Hamburgers have 600 calories. How many would you like? 2 French Fries have 350 calories. How many would you like? 1 Coke have 200 calories. How many would you like? 2 Your meal will have a total of 1950 calories?
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
You know the right answer?
You have been hired by your favorite restaurant to create a food nutrition app for their customers t...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/istoriya.png)
History, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/health.png)
Health, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/biologiya.png)
Biology, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/en.png)
English, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/mat.png)
Mathematics, 12.09.2020 01:01
![question](/tpl/images/cats/fizika.png)
Physics, 12.09.2020 01:01