Answered step by step
Verified Expert Solution
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
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