Question: Problem 3 - HolidayShopping.cpp (14 points) Write a program that has a gift structure in it. The structure should capture the person receiving the gift,

 Problem 3 - HolidayShopping.cpp (14 points) Write a program that hasa gift structure in it. The structure should capture the person receiving

Problem 3 - HolidayShopping.cpp (14 points) Write a program that has a gift structure in it. The structure should capture the person receiving the gift, what the gift was, the price, and the name of the store where it was purchased. The program should ask the user for the values to fill the structure in the same order as they are listed above. This should happen in a loop until the user enters "stop" (without the quotes) for the recipient name. The program should then list cach person's name and the gift they are receiving. It should also list the average amount of money spent and a list of shops where the gifts are coming from. The list of shops should not contain any duplicates and should be comma separated. The program should be called HolidayShopping.cpp. #include #include 2 3 using namespace std; 5 struct ShoppingList 6 string name; char item(35]; double price char store(60]: 10 2 int mainO 13 ShoppingList list[20]; 4 for(int i-0;i >list[il.name cout"What is the gift?" in >>list[i.item; cout"How much did it cost?". in >>listlil.price 23 24 25 26 27 28 29 30 31 cout >list[ij.store cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!