Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started