Cant get to the next step

Hello everyone,
I am extremely new at this, and I am working on a little program. This program tells the user how many lunch calories they are eating in an 18 week period and will allow them to choose from a list of alternate lunches.

I have set the loop, i have set the alternate food choices, what i cant seem to figure out is how to have the user input their choice, and it then spit out how many calories they will be consuming.

The program so far is below:

#include <iostream>;
using namespace std;

int tc; //tc = 3 regular tacos and a 16oz coke @ 743 calories
int tdc; //tdc = 3 regular tacos and a 16oz diet coke @ 546 calories
int gcfc; //gcfc = grilled cheese, fries, and a coke @ 794 calories
int gcfw; //gcfw = grilled cheese, fries, and a water @ 596 calories
int cbdc; //cbdc = combination burrito and a 16oz diet coke @ 602 calories
int cbc; //cbc = combination burrito and a 16oz coke @ 799 calories
int hfdc; //hfdc = old fashioned hamburger, fries, and a diet coke @ 814 calories
int hfc; //hfc = old fashioned hamburger, fries, and a coke @ 813 calories
int NC; //NC = number of calculations

int main()

{
cout << "WELCOME TO THE LOOSING WEIGHT CALCULATOR" << endl << endl; //program welcome title
cout << "Your current lunch of nachos and a cappucino blender" << endl;
cout << "is equal to 226,620 calories for 18 weeks! " << endl << endl;
cout << "How many calculations would you like to run? ";
cin >> NC;
cout << endl;
for (int count = 0; count <NC; count++) // allows for loop to run multiple calculations.
{
system("pause");
cout << endl;
cout << "Your replacement options are: " << endl << endl; //endl; ends the line.
cout << "1. 3 Tacos & a 16oz coke" << endl;
cout << "2. Combination Burrito & a 16oz coke" << endl;
cout << "3. Grilled Cheese, small fries, & a 16oz coke" << endl;
cout << "4. Hamburger, small fries, & a 16oz coke" << endl;
cout << "5. 3 Tacos and a 16oz coke or Water" << endl;
cout << "6. Combination Burrito & a 16oz diet coke" << endl;
cout << "7. Grilled Cheese, small fries, & a Water" << endl;
cout << "8. Hamburger, small fries, & a diet coke" << endl << endl;
cout << endl;
cout << "Please select your meal: " << endl << endl;
cout << "Your new calorie intake for lunch will be: " << endl << endl;



system("pause");
}
}
If I understand your question correctly, then what you can do is have the user input the number correspond to the option then use a series of if-else statements or a switch statement to determine what to calculate.
I just started to research the if-else statements prior to reading your reply which makes me feel a bit better. I think the biggest issue i have is, when the user inputs their choice (based on how i have the program set currently), im not sure how to make the program jump to or display that choice. (im not sure im expressing exactly what my question is but its a good start)

Thank you for the input already Longazan.
Ok guys, Thank you for the input, I pretty much got it figured out. It took a lot of trial and error, and a little bit of finagling but it pretty much does what i want it to.

The fix was just using an IF statement, I didnt ned and an ELSE statement.

Thank you.
Topic archived. No new replies allowed.