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;
#include <iostream>
#include <string>
usingnamespace std;
const string ID = "Bluecoco - CS 1336 - Lab 09";
const string SUPERBOWL_DRINK = "Rootbeer";
const string SUPERBOWL_SNACK = "Cheetos";
constchar BEST_RATING = 'A';
int main()
{
// variables
char rating = 'B';
string superBowlSnack;
string superBowlDrink;
intnumberOfPeople = 350;
inttopChoicePeople = 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;
}