My Computer Science Exam Pre-Release Task 1

Sort:
TheLionQueen20

cheeses = ["Brie", "Cheddar", "Mozzarella", "Gouda", "Fetta"]
sauces = ["Ketchup", "Mayonaise", "Mustard", "BBQ Sauce", "Ranch", "None"]
breadsizes = [15,30]
breadtypes = ["White", "Brown", "Seeded"]
fillings = ["Beef", "Chicken", "Egg", "Tuna", "Turkey", "Cheese"]
salad = ["Lettuce", "Tomato", "Sweetcorn", "Cucumber", "Pepper", "Pickles", "Caramelised Onions", "None"]


print("***Welcome to Subway Sandwiches!***")
print("Please compose your sub sandwich!")
print("********************")
print("The Bread Sizes are 15 and 30 centimetres,")
invalid = True
while invalid :
breadSize = int(input("Please pick your bread size."))
if breadSize == 15:
print("15 cm chosen")
invalid = False
elif breadSize == 30:
print("30 cm chosen")
invalid = False
else:
print("Invalid pick again")
print("********************")
print("The Bread Types are:")
print(breadtypes)
invalid = True
while invalid :
breadTypes = str(input("Please pick your bread type."))
if breadTypes == "White":
print("White bread chosen.")
invalid = False
elif breadTypes == "Brown":
print("Brown bread chosen.")
invalid = False
elif breadTypes == "Seeded":
print("Seeded bread chosen.")
invalid = False
else:
print("Invalid pick again")
print("********************")
print("The Fillings are:")
print(fillings)
invalid = True
while invalid :
sandFillings = str(input("Please pick your Filling"))
if sandFillings == "Beef":
print("Beef chosen")
invalid = False
elif sandFillings == "Chicken":
print("Chicken chosen")
invalid = False
elif sandFillings == "Egg":
print("Egg chosen")
invalid = False
elif sandFillings == "Tuna":
print("Tuna chosen")
invalid = False
elif sandFillings == "Turkey":
print("Turkey chosen")
invalid = False
elif sandFillings == "Cheese":
print("These are the availbe cheeses:")
print(cheeses)
sandCheese = str(input("Please pick your cheese"))
if sandCheese == "Brie":
print("Brie chosen")
invalid = False
elif sandCheese == "Cheddar":
print("Cheddar chosen")
invalid = False
elif sandCheese == "Mozzarella":
print("Mozzarella chosen")
invalid = False
elif sandCheese == "Gouda":
print("Gouda chosen")
invalid = False
elif sandCheese == "Fetta":
print("Fetta chosen")
invalid = False
else:
print("Invalid pick again")
else:
print("Invalid pick again")
print("********************")
print("The sauces are:")
print(sauces)
invalid = True
while invalid :
sandSauces = str(input("Please pick your sauce"))
if sandSauces == "Ketchup":
print("Ketchup has been chosen")
invalid = False
elif sandSauces == "Mayonaise":
print("Mayonaise has been chosen")
invalid = False
elif sandSauces == "Mustard":
print("Mustard has bee chosen")
invalid = False
elif sandSauces == "BBQ Sauce":
print("BBQ Sauces has been chosen")
invalid = False
elif sandSauces == "Ranch":
print("Ranch has been chosen")
invalid = False
elif sandSauces == "None":
print("No sauce has been chosen")
invalid = False
else:
print("Invalid pick again")
print("********************")
print("The salad choices are:")
print(salad)
salad_string = ""
for index in range(3):
sal = input("Enter salad")
salad_string = salad_string + "" + sal
print("********************")

TheLionQueen20

Of course some parts are indented it just doesn't show here. happy.png 

EvidentRoad

cool! i think. i dunno anything about coding.