only question i have, it has me input a number for Alevel twice when the program is actually running for it to display an output.
IE:
1 2 3 4 5 6 7 8 9 10 11 12
Welcome to Calorie Calculator!!
This program will calculate your caloric Intake!
What is your gender? (1 for female, and 2 for male): 2
how much do you weigh in pounds? 200
What is your activity level?
Select 1 for Low activity, Select 2 for Moderate Activity.
2
2
Your caloric intake is.. 2400.
here is the code surrounding Alevel:
1 2 3 4 5 6 7 8 9 10
cout << "What is your activity level?\n";
cout << "Select 1 for Low activity, Select 2 for Moderate Activity."<<endl;
int Alevel;
cin>> Alevel;
while (Alevel != 1 && Alevel != 2)
{
cout <<"Not valid, select 1 or 2";
cin>> Alevel;
}