Confusion about variables

I'm doing something wrong. This is my teacher comment, what areas do I need to change?
"You are printing literals 350, 159, 'A' and 'B' instead of the variables. You are not printing the variable superBowlSnack either, that you have input using cin"

#include <iostream>
#include <string>
using namespace std;
const string ID = "Bluecoco - CS 1336 - Lab 09";
const string SUPERBOWL_DRINK = "Rootbeer";
const string SUPERBOWL_SNACK = "Cheetos";
const char BEST_RATING = 'A';
int main()
{
// variables
char rating = 'B';
string superBowlSnack;
string superBowlDrink;
int numberOfPeople = 350;
int topChoicePeople = 159;
// output ID line
cout << ID << endl << endl;
cout << "Please enter your favorite Super Bowl Snack: " << endl;
cin >> superBowlSnack;
cout << "Please enter the number of people who voted: " << endl;
cin >> numberOfPeople;
cout << "Please enter the number of people who voted for the most favorite products: ";
cin >> topChoicePeople;
// Display Results
cout << "The preferred drink of Super Bowl is " << SUPERBOWL_DRINK << endl;
cout << "The preferred snack of Super Bowl is " << SUPERBOWL_SNACK << endl;
cout << "Out of " << 350 << " people, "
<< 159 << " chose these items!" << endl;
cout << "Each of these products was given a rating of " << 'A'
<< " from our expert tasters" << endl;
cout << "The other products were rated no higher than a " << 'B' << endl;
return 0;
Please use the code format tags to format your code.

I've highlighted your literals and variables.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>
#include <string>

using namespace std;

const string ID = "Bluecoco - CS 1336 - Lab 09";
const string SUPERBOWL_DRINK = "Rootbeer";
const string SUPERBOWL_SNACK = "Cheetos";
const char BEST_RATING = 'A';

int main()
{
    // variables
    char rating = 'B';
    string superBowlSnack;
    string superBowlDrink;
    int numberOfPeople = 350;
    int topChoicePeople = 159;

    // output ID line
    cout << ID << endl << endl;
    cout << "Please enter your favorite Super Bowl Snack: " << endl;
    cin >> superBowlSnack;
    cout << "Please enter the number of people who voted: " << endl;
    cin >> numberOfPeople;
    cout << "Please enter the number of people who voted for the most favorite products: ";
    cin >> topChoicePeople;

    // Display Results
    cout << "The preferred drink of Super Bowl is " << SUPERBOWL_DRINK << endl;
    cout << "The preferred snack of Super Bowl is " << SUPERBOWL_SNACK << endl;
    cout << "Out of " << 350 << " people, "
       << 159 << " chose these items!" << endl;
    cout << "Each of these products was given a rating of " << 'A'
        << " from our expert tasters" << endl;
    cout << "The other products were rated no higher than a " << 'B' << endl;
    return 0;
}
1
2
cout << "Out of " <<  numberOfPeople << " people, "
       << topChoicePeople << " chose these items!" << endl;
I'm so dumb, I see now. Thank you so much!
Topic archived. No new replies allowed.