At Chips 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 Baked Potato (57 Calories) 2 Sundae (266 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 Specifications
The program should prompt the user for a number for each type of item then calculate and display the Calorie total. 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 Specifications
The program prints out on the screen the total Calories of the selected meal, and stops executing
after this output.
Sample Prompting and User Input (user input in italics)
Welcome to Chips Fast Food Emporium
Please enter a burger choice: 2
Please enter a side order choice: 1
Please enter a drink choice: 3
Please enter a dessert choice: 4
Output for the Sample
Your total Calorie count is 649.
above is the question and below is my half code so far....i can't further do anything.......i can't under stand what should i do?
#include <iostream>
using namespace std;
int main()
{
int b,d,o,s;
int a=
int sum=0;
cout<<"Welcome to Chip's Fast Food Emporium"<<endl;
cout<<"Please enter a burger choice:"<<endl;
cin>>b;
cout<<"Please enter a side order choice:"<<endl;
cin>>o;
cout<<"Please enter a drink choice:"<<endl;
cin>>d;
cout<<"Please enter a dessert choice:"<<endl;
cin>>s;
return 0;
}


LinkBack URL
About LinkBacks