Computer Science > Lab Experiment > working computer programmes, (All)
#include <iostream> #include <string> using namespace std; // Definition of constants const string FAVORITESODA = "Dr. Dolittle"; // use double quotes for strings const char BESTRATING = 'A'; /... / use single quotes for characters int main() { auto RATING = "B"; // 2nd highest product rating const string FAVORITESNACK = "crackers"; // most preferred snack auto NUMBEROFPEOPLE = 250; // the number of people in the survey auto topchoicetotal = 148; // the number of people who prefer the top choice // 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 topChoiceTota cout << "The preferred soda is " << FAVORITESODA << endl; cout << "The preferred snack is " << FAVORITESNACK << endl; cout << "Out of " << NUMBEROFPEOPLE << " [Show More]
Last updated: 2 years ago
Preview 1 out of 2 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Aug 07, 2021
Number of pages
2
Written in
This document has been written for:
Uploaded
Aug 07, 2021
Downloads
0
Views
141
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·