Question: 2 IIThis program demonstrates the use of characters and strings 4 5 /PLACE YOUR NAME HERE 6 7 #include #include 9 using namespace std; 10

 2 IIThis program demonstrates the use of characters and strings 4

2 IIThis program demonstrates the use of characters and strings 4 5 /PLACE YOUR NAME HERE 6 7 #include #include 9 using namespace std; 10 11 II Declaration of constants 12 const string FAVORITESODA"Dr. Dolittle";I/ use double quotes for strings 13 const char BESTRATINGA; // use single quotes for characters 15 16 int main() 17 18 19 20 21 char rating; string favoriteSnack; int numberOfPeople; int topChoiceTotal; // 2nd highest product rating // most preferred snack // the number of peop // the number of people who prefer the top choice le in the survey 23 24 25 26 27 28 29 30 31 // Fill in the code to do the following: // Assign the value of "crackers" to favoriteSnack // Assign a grade of 'B' to rating // Assign the number 250 to the numberOfPeople // Assign the number 148 to the topChoiceTotal // Fill in the blanks of the following: cout

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!