Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with this infinite vector assignment please. Code must be in C++ Task Create a program which will ask for a category and thing
Need help with this infinite vector assignment please. Code must be in C++
Task Create a program which will ask for a category and thing for a "favorite things getting to know you task. The program should ask for "favorite things" until the student says they are done (with a "y" or "n"). You should create 2 vectors to complete this task and at the end reprint all the "favorites" (the second vector only) using a loop with "auto" Example Input/Output Please enter a category: Minon Please enter your favorite thing of that category: Bob Do you have more favorites? (y) Y Please enter a category: food Please enter your favorite thing of that category: Pizza Do you have more favorites (y) Hope Your favorite is Bob. Your favorite is Pizza 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