# Have you had to stand in a queue at a billing counter, when you just had to bill for two items? 
# Well, what if we had an express billing counter, wherein one could bill for 10 or less items 
# Shall we create a program to do this?
'''Task 1: Calmart Express Counter'''
print("**** Task 1: ****")
print()
# You work at the Express Cash Counter of Calmart Store
# At the Express Cash counter, you are allowed to check out only 10 items.
# Your program needs to :
# - Allow price of only 10 items
# - Display the total amount the customer has to pay for the 10 items purchased
x = int(input("How many items are you going to buy?"))
price = 0
for i in range(x):
    q = input("Enter your item's name")
    for y in (q):
        price += 1
print(f"Thank you for shopping you have bought {x} items at a price of ${price}")


'''Task 2: Cookie Time'''
print("**** Task 2: ****")
print()
# You have decided to bake cookies for your friend
# You have to warm the oven to 350 degrees
# The starting temperature for your oven is 120 degrees
# It takes about 2 mins for the temperature to increase by 10 degrees
# You want to write a program, that gives you the time it will take to reach the final temperature
start = 120
x = 120
time = 0
counter = 1
while counter != 0:
    for i in range(counter):
        time +=2
        x+=10
        if x == 350:
            counter = 0
print(f"It took {time} minutes for the oven to reach a temperature of 350 degrees.")



'''Task 3: Shazam!!'''
print("**** Task 3: ****")
print()
# You work as a cashier in Shazam, a local toy store. 
# The store as a part of its festival bonanza, has given some of its regular customers a gift card of $1000.
# When purchasing in Shazam, the customer needs to first use the gift card.
# Any purchase above the gift card limit, needs to be paid either by cash or card
# Write a program that takes the price of each of the items being purchased and adjusts the gift card amount with the final amount. 

x = int(input("How many items are you going to buy?\n"))
price = 0
extra = 0
for i in range(x):
    q = input("Enter your item's name\n")
    for y in (q):
        price += 5
if price > 1000:
    extra = price - 1000
print(f"Thank you for shopping you have bought {x} items at a price of ${price}. The gift card covers $1000. The amount you have to pay with your card or by cash is ${extra}")

'''Awesome!! You are mastering the use of the while loop. Way to go!!'''

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: