Answered step by step
Verified Expert Solution
Link Copied!

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++
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions

Question

How would you assess the value of an approach like this?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago