Question 5: Project

Sam is managing a supermarket and wants to create a program to help customers calculate the total cost of their grocery purchases. He wants to implement some special pricing rules for certain items. Write a Python program to assist Sam with his calculations.

Here are the pricing rules for Sam’s supermarket:

  • Regular Items: Customers can purchase regular items for their regular prices.
  • Special Items: Customers can purchase special items for 50% off their regular prices.

Write a Python program that prompts customers to enter the quantity of regular and special items they want to purchase, calculates the total cost, and applies any applicable discounts.

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