e selected meal, and st

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Output Specification
The program prints out the total Calories of the selected meal, and stops executing after this output.
Sample Input
Соpy
1.
Sample Output
Сopy
Your total Calorie count is 649.
Explanation
The customer chose Burger #2, Side #1, Drink #3 and Dessert #4.
Transcribed Image Text:Output Specification The program prints out the total Calories of the selected meal, and stops executing after this output. Sample Input Соpy 1. Sample Output Сopy Your total Calorie count is 649. Explanation The customer chose Burger #2, Side #1, Drink #3 and Dessert #4.
CCC '06 J1 - Canadian Calorie Counting
Canadian Computing Competition: 2006 Stage 1, Junior #1
At Chip's Fast Food emporium there is a very simple menu. Each food item is selected by entering a digit
choice.
Here are the three burger choices:
Here are the three drink choices:
1- Cheeseburger (461 Calories)
1- Soft Drink (130 Calories)
2- Fish Burger (431 Calories)
2- Orange Juice (160 Calories)
3 - Veggie Burger (420 Calories)
3 - Milk (118 Calories)
4 - no burger
4 - no drink
Here are the three side order choices:
Here are the three dessert choices:
1- Fries (100 Calories)
1- Apple Pie (167 Calories)
2 - Sundae (266 Calories)
2- Baked Potato (57 Calories)
3- Chef Salad (70 Calories)
3 - Fruit Cup (75 Calories)
4- no side order
4 - no dessert
Write a program that will compute the total Calories of a meal.
Input Specification
The program should input a number for each type of item then calculate and display the Calorie total.
The first line will be the customer's choice of burger, the second will be the choice of side, then drink
then dessert. You may assume that each input will be a number from 1 to 4. That is, each customer has to
pick exactly one number from each of the four options out of each of the four categories.
Output Specification
The program prints out the total Calories of the selected meal, and stops executing after this output.
Transcribed Image Text:CCC '06 J1 - Canadian Calorie Counting Canadian Computing Competition: 2006 Stage 1, Junior #1 At Chip's Fast Food emporium there is a very simple menu. Each food item is selected by entering a digit choice. Here are the three burger choices: Here are the three drink choices: 1- Cheeseburger (461 Calories) 1- Soft Drink (130 Calories) 2- Fish Burger (431 Calories) 2- Orange Juice (160 Calories) 3 - Veggie Burger (420 Calories) 3 - Milk (118 Calories) 4 - no burger 4 - no drink Here are the three side order choices: Here are the three dessert choices: 1- Fries (100 Calories) 1- Apple Pie (167 Calories) 2 - Sundae (266 Calories) 2- Baked Potato (57 Calories) 3- Chef Salad (70 Calories) 3 - Fruit Cup (75 Calories) 4- no side order 4 - no dessert Write a program that will compute the total Calories of a meal. Input Specification The program should input a number for each type of item then calculate and display the Calorie total. The first line will be the customer's choice of burger, the second will be the choice of side, then drink then dessert. You may assume that each input will be a number from 1 to 4. That is, each customer has to pick exactly one number from each of the four options out of each of the four categories. Output Specification The program prints out the total Calories of the selected meal, and stops executing after this output.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Excel Sheet
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education