1. Ask user’s name and welcome them to the Christmas Gift Shop
    “Welcome to the Christmas Gift Shop! What is your name?”

  2. Ask the user for how many people he/she wants to purchase Christmas gifts.
    “Hello <name>! How many people are you buying Christmas presents for?”

  3. Ask the user the budget available to spend. Make sure there’s enough money to buy at least a present.
    “Thank you! What is your budget for all these gifts?”

  4. Show the user the items available in store, one by one with price. Ask the user if he wants to purchase the item and check if the user has enough money to purchase it; if so, place the item aside and tell the user how much money he has left for the remaining presents.

The Christmas gifts available in shop are:

  • Pair of Christmas socks - $10
  • Box of luxury chocolates - $15
  • Scarf with reindeers - $25
  • Smart doll - $45
  • Marzipan globes - $10
  • Comfy fluffy slippers - $20
  • Pineapple headset - $50
  • Personalised watch - $85
  • Pearl earrings - $150
  • Universal charger - $30
  • Rudolph’s nose - $10
  • Gingerbread house - $20
  • Decorative lights - $15
  • New Year Diary - $30
  • Snow globe - $15
  • Dancing reindeer - $25
  • Snowflake ballerina - $25
  • Silk scarf with snowflakes - $50
  • Leather lady gloves - $75
  • Remote controlled car - $95
  1. The program ends when one of the following happens:

    • gifts have been purchased for all family members
    • all money has been spent
    • there is not enough money left to purchase any more gifts
    • all items have been presented yet the user hasn’t purchased gifts for all the family
  2. Show the user a summary of the gifts bought, as well as the total spending and the remaining money left.

What's stopping you from working this assignment? Or are you expecting folk on the Internet to do this for you?