Question: Program #3: Note: You will ONLY use variables to fill in the blanks, NOT the literal values. (6 points) // Place your name here #include

Program #3: Note: You will ONLY use variables to fill in the blanks, NOT the literal values. (6 points) // Place your name here #include #include using namespace std; // Declaration of constants const string FAVORITESODA = "_______"; //Fill in your favorite soda! const char BESTRATING = 'A'; //Use single quotes for characters int main() { char rating; // 2nd highest product rating string favoriteSnack; // most preferred snack int numberOfPeople; // the number of people in the survey int topChoiceTotal; // the number of people who prefer the // top choice favoriteSnack = "crackers"; // Assigns the value of "crackers" to favoriteSnack //Fill in the code to do the following: // Assign a grade of 'B' to rating // Assign the number 250 to the numberOfPeople // Assign the number 148 to the topChoiceTotal // Refer to pages 45, 51, and 53 in the text if you need help. // Fill in the blanks with the appropriate variable name (NOT THE // VALUE!): cout << "The groups favorite soda is " << ____________ << endl; cout << "The groups favorite snack is " << ___________ << endl; cout << "Out of " << _____________ << " people surveyed, " << ____________ << " selected the top choice!" << endl; cout << "Each of these products were given the best rating of " << _; cout << " from our expert tasters." << endl; cout << "The other products were rated no higher than a " << rating << endl; system("pause"); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!