# Have you heard of chatbot?
# Chatbot is a computer program that chats like a real person. For example Swelly is a Facebook Messenger chatbot.
# Take a look at this video, that shows what a conversational banking chatbot looks like:(copy and paste the below link on a new tab/window)
# https://[Log in to view URL]
# Are you ready to chat with your computer?
'''------- Task 1: Number Maestro'''
print("*** Task 1: ****")
print()
# Write a program that introduces you as “Number Maestro” and accept a number between 1 to 100 from the user.
# If the number is lesser than 1 or greater than 100, print an error message
# If the number is 50, print that the number is 50
# If the number is 100, print that the number is 100
# if the number is between 1 and 50, print that the number is between 1 and 50
# If the number is between 50 and 100, print that the number is between 50 and 100
x = int(input("I am the number maestro. Enter a number from 1-100"))
if x<1:
print("The number is not 1-100")
elif x>100:
print("The number is not 1-100")
elif x>=1 and x<=100:
print(f"{x} is a number from 1 to 50")
elif x>=51 and x<=100:
print(f"{x} is a number from 51 to 100")
else:
print("Please try again!")
'''------- Task 2: Area Calculator Genie'''
print("*** Task 2: ****")
print()
# Have you heard of the Aladdin story? What did the genie do in that story?
# Helps Aladdin with all his work.
# Ready for a challenge! Write a program that acts like a genie to check if the user knows about geometrical shapes
# If yes, it should calculate the area of either a
# Square (Area = Side * Side)
# Rectangle (Area = Length * Breadth)
# Circle (Area = 3.14 * radius * radius)
choice = int(input("Do you know about geometrical shapes? 1-Yes 2-No"))
if choice == 1:
spec=int(input("Do you want to calculate the area of a 1- square 2- rectangle or 3- circle."))
if spec == 1:
side = int(input("what is the side length?"))
area = side**2
print(f"The area of your square is {area}")
elif spec == 2:
side = int(input("what is the length?"))
side2 = int(input("what is the width?"))
area = side * side2
print(f"The area of your rectangle is {area}")
elif spec == 3:
r = int(input("what is the radius?"))
x = r**2
area = x*3.14
print(f"The area of your circle is {area}")
else:
print("Enter a choice above.")
else:
print("Bye see you later!")
'''------- Task 3: Flowers on a Click'''
print("*** Task 3: ****")
print()
# You have to write a program that asks a customer if they like bouquets
# If yes, ask them to select a flower bouquet of their choice. You can use the following to start with:
# - Rose and Lily
# - Orchid and Tuberose
# - Rose and Carnation
# - Carnation and Orchids
# Once the customer specifies their choice, you need to:
# - Tell them the cost
# - Get their address
# And send a message that it will be delivered to that address and they can pay by card, cash or Apple Pay
# If the customer does not like bouquets choice, tell them to visit the website
x = int(input("Would you like a bouqet? 1-yes 2-no"))
if x==1:
spec = int(input("Do you want\n1- Rose and Lily\n2- Orchid and Tuberose\n3 - Rose and Carnation\n4- Carnation and Orchids"))
if spec == 1:
address = input("Please enter your address for the delivery:")
method = int(input("That costs 10 dollars. Would you like to pay by 1-card, 2-cash or 3-Apple Pay"))
if method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
else:
print("Sorry we can't allow you to pay like that. Please visit our website, bye.")
elif spec == 2:
address = input("Please enter your address for the delivery:")
method = int(input("That costs 10 dollars. Would you like to pay by 1-card, 2-cash or 3-Apple Pay"))
if method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
else:
print("Sorry we can't allow you to pay like that. Please visit our website, bye.")
elif spec == 3:
address = input("Please enter your address for the delivery:")
method = int(input("That costs 10 dollars. Would you like to pay by 1-card, 2-cash or 3-Apple Pay"))
if method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
else:
print("Sorry we can't allow you to pay like that. Please visit our website, bye.")
elif spec == 4:
address = input("Please enter your address for the delivery:")
method = int(input("That costs 10 dollars. Would you like to pay by 1-card, 2-cash or 3-Apple Pay"))
if method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
elif method == 1:
print("Thank you! You will recieve your bouqet soon!")
else:
print("Sorry we can't allow you to pay like that. Please visit our website, bye.")
else:
print("Please visit our website for more options.")
else:
print("Please visit our website for more options.")
'''Great! You really have the knack for decision making.'''
To embed this project on your website, copy the following code and paste it into your website's HTML: