Menu

[Solved]Include Include Using Namespace Std Given Array String Str Contains Selected Facorite Food Q37293939

#include #include <iostream> <string> using namespace std; Given the array of string str which contains the selected facorite

#include #include <iostream> <string> using namespace std; Given the array of string str which contains the selected facorite food of students, print out (cout) how many students selected each food as their favorite. 1 is the size of str in the case you need a for loop Since you know different containers now, choose whatever you think is more appropriate Here are your options: vector, map, unordered map, priority_queue, array, set, unodered_set, stack, queue, Don’t forget to include the library of whatever you use in the header of the file The output should be somethink iike: 1 student selected Mole 7 students selected pizza 3 students selected Taco R/ void printNumberofStudents (string* str, int 1) int main( string food[21]- “Taco”, “Pizza”, “Taco”,”Tamale”, “Burger”, “Pizza”,”Burritos”, “Chicken printNumberofstudents (food,21); system(“pause”) Beryani”, “Taco”, “Mole”, “Enchiladas”, “Sushi”, “Taco”, “Spagetti”, “BBQ”, “Pizza”,”Pazole”, “Sushi”, “Taco” , “Burritos”, “Pizza”]; return 0 Show transcribed image text #include #include using namespace std; Given the array of string str which contains the selected facorite food of students, print out (cout) how many students selected each food as their favorite. 1 is the size of str in the case you need a for loop Since you know different containers now, choose whatever you think is more appropriate Here are your options: vector, map, unordered map, priority_queue, array, set, unodered_set, stack, queue, Don’t forget to include the library of whatever you use in the header of the file The output should be somethink iike: 1 student selected Mole 7 students selected pizza 3 students selected Taco R/ void printNumberofStudents (string* str, int 1) int main( string food[21]- “Taco”, “Pizza”, “Taco”,”Tamale”, “Burger”, “Pizza”,”Burritos”, “Chicken printNumberofstudents (food,21); system(“pause”) Beryani”, “Taco”, “Mole”, “Enchiladas”, “Sushi”, “Taco”, “Spagetti”, “BBQ”, “Pizza”,”Pazole”, “Sushi”, “Taco” , “Burritos”, “Pizza”]; return 0

Expert Answer


Answer to #include #include using namespace std; Given the array of string str which contains the selected facorite food of studen… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *