Consider this program:
// Purpose: Asks the user for their favorite number and ice cream flavor.
using namespace std;
// Variable declarations
// Prompt the user for their favorite number and ice cream flavor.
cout << "Please enter your favorite number: ";
cin >> number;
cout << "Enter your favorite ice cream flavor: ";
// Repeat their input.
cout << "That's funny, " << number << " is my favorite number and "
<< iceCreamFlavor << " is my favorite flavor, too!" << endl;
After I compile it and then run it, it asks me for my favorite number and waits for me to enter it. I enter it, then the question asking for my favorite ice cream flavor appears, but it does wait for me to input anything, it just continues on to the output statement. Here's what it looks like (my input is in orange):
Please enter your favorite number: 5
Enter your favorite ice cream flavor: That's funny, 5 is my favorite number and is my favorite flavor, too!
1) What's going on and 2) how do I fix it?
After we've completed the group share portion, please upload a copy of your updated TPS document.