Question 2: Project

Tim is opening a virtual pet shop where users can adopt virtual pets and buy various items for them. He wants to create a program to calculate the total cost for users based on their selections. Write a Python program to help Tim with his virtual pet shop calculations.

Tim’s virtual pet shop offers the following items:

  • Adoption Fee: There’s an adoption fee of $50 for each virtual pet.
  • Pet Food: Users can purchase pet food for $10 per bag.
  • Toys: Users can buy toys for their pets. Each toy costs $15.
  • Accessories: Users can purchase accessories for their pets. Each accessory costs $20.

Additionally, Tim wants to offer a discount of $5 for users who spend more than $50 in total.

Write a Python program that prompts users to select the items they want to purchase and calculates the total cost, including any applicable discounts.

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