Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Question Help: I want to know how to code a giftlist.cpp. those are the requirements: Program must compile and run. All inputs are strings.

C++ Question Help: I want to know how to code a giftlist.cpp.

those are the requirements:

Program must compile and run.

All inputs are strings.

Only do the nice list, not the naughty list.

User will enter names until empty string denoting no more names.

Each name will be followed by one or more gifts.

After names entered display contents of the name list and each gift list.

Those are output example:

tim superman comic car pony 
alice dress 
bob monopoly candy cane 
greg legos cookie 
The list contains 
name for nice list: 
gift: 
gift: pony 
gift: car 
gift: superman comic 
add gifts for tim 
name for nice list: tim 
gift: 
gift: dress 
add gifts for alice 
name for nice list: alice 
gift: 
gift: candy cane 
gift: monopoly 
add gifts for bob 
name for nice list: bob 
gift: 
gift: cookie 
gift: legos 
add gifts for greg 
name for nice list: greg 

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_2

Step: 3

blur-text-image_3

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

Students also viewed these Databases questions

Question

Describe the various sources of export assistance.

Answered: 1 week ago

Question

Assessment of skills and interests.

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago