Question 35: If Elif Fundo Icecream Algorithm

🎯 Student Task

Design an algorithm and then write a Python program that helps a child decide what ice cream to buy, where to buy it, and what to do if they do not have enough money.

Your program must ask questions, make decisions, and give suggestions.


🪜 Detailed Algorithm (What Your Program Must Do)
🔹 Part 1: Start & Shop Choice
  1. Start the program

  2. Display a fun welcome message for the Fundo Ice Cream Adventure

  3. Ask the user:

    • “Did you find a popular ice cream shop?”


🔹 Part 2: Ice Cream Decision
  1. If the answer is NO:

    • Tell the user to search for another ice cream shop

    • End the program

  2. If the answer is YES:

    • Ask:

      • “Do you want Fundo Ice Cream?”


🔹 Part 3: Flavor Selection
  1. If the user says NO:

    • Suggest visiting another shop

    • End the program

  2. If the user says YES:

    • Show available flavors:

      • Chocolate 🍫

      • Vanilla 🍦

      • Strawberry 🍓

      • Mango 🥭

    • Ask the user to choose one flavor


🔹 Part 4: Cost of Ice Cream
  1. Tell the user the price of each flavor:

    • Chocolate – ₦1500

    • Vanilla – ₦1200

    • Strawberry – ₦1300

    • Mango – ₦1000

  2. Ask the user:

    • “How much money do you have?”


🔹 Part 5: Money Decision
  1. Compare the user’s money with the cost of the chosen flavor

  2. If the user has enough money:

  • Ask:

    • “Do you want to eat in or take out?”

  • Show a happy message saying they can enjoy their ice cream

  1. If the user does NOT have enough money:

  • Suggest cheaper options:

    • Lollipop – ₦300 🍭

    • Ice pop – ₦500 ❄️

  • Ask the user to choose one cheaper option


🔹 Part 6: Ending
  1. Show a message about the item the user bought

  2. Thank the user for playing the Fundo Ice Cream Adventure

  3. End the program

Write what you are looking for, and press enter to begin your search!