# How do you solve complex calculations or problems?
# You could use a calculator or take help form a learned person
# You would provide the necessary information to arrive at the solution
# What if you could do this on a computer? Lets Try!
'''-----Task 1: ------'''
print("****Task 1: ****")
print()
# Uncomment the statements and click Run
name = input ("Hi, what is your name? ")
print("It is lovely to meet you ", name)
feeling = int(input("How are you feeling today? Excited =1, Happy = 2, Miserable = 3, Nervous= 4 \n"))
if feeling==1:
print("Fantastic!! Here is a riddle to keep up the excitement.\n")
print("What kind of room has no doors or windows?\n ")
print("Answer: Mushroom")
elif feeling==2:
print("I am happy too, Yay!!Here is a riddle to keep up the happiness.\n")
print("Why are teddy bears never hungry?\n")
print("Answer: Because they are always stuffed")
elif feeling==3:
print ("I am sorry to hear that you feel miserable. Here is a riddle to cheer you up.\n?")
print("What is the longest word in the dictionary?\n")
print("Answer: Smiles, because there is a mile between each “s”")
elif feeling==4:
print("Hmm. I am sure you will get over it. Here is a riddle to boost your confidence.\n?")
print("You can hear it, but not touch or see it. What is it? \n")
print("Answer: Your voice")
else:
print("Select the correct number. Try again")
'''-----Task 2: Speed, Distance, Time Calculator------'''
print("****Task 2: ****")
print()
# Write a program which calculates the speed or distance or time depending on the inputs provided by the user
# Ask the user what they want to calculate and depending on the response, ask for the required inputs,
# For example if the user says the speed needs to be calculated, take the distance and time as the input from the user
Cal=int(input("What do you want to calculate today? Type 1 for speed, 2 for distance, and 3 for time.\n"))
if Cal == 1:
dis = int(input("Please enter the distance travelled in miles.\n"))
time = int(input("Please enter the time taken in hours.\n"))
speed=dis/time
speed=float(speed)
print(f"The speed is {speed} MPH.\n")
elif Cal == 2:
speed = int(input("Please enter the speed travelled in MPH.\n"))
time = int(input("Please enter the time taken in hours.\n"))
dis = speed*time
dis=float(dis)
print(f"The distance travelled is {dis} miles.\n")
elif Cal == 3:
speed = int(input("Please enter the speed travelled in MPH.\n"))
dis = int(input("Please enter the distance travelled in miles.\n"))
time = dis/speed
time=float(time)
print(f"The time taken is {time} hours.\n")
else:
print("Please Try Again")
'''-----Task 3: Total Score------'''
print("****Task 3: ****")
print()
# Write a program that takes the Maths theory and Maths lab score.
# Each of the score cannot be more than 50
# Calculate the total score and print the result
m1=int(input("Please enter your math theory score.\n"))
m2=int(input("Please enter your math lab score.\n"))
if m1<=50 and m2<=50:
score=m1+m2
print(f"Your total score is {score}")
else:
print("Try again. Your scores can't exceed 50 alone.\n")
'''Brilliant! You are really good with decision making programs. Way to go!!'''
To embed this project on your website, copy the following code and paste it into your website's HTML: