Let's run through the code and see how it relates to the flowchart!
The flowchart will be constructed as you go through the code.
my_money = 7
pepperoni_price = 11
salad_price = 8
burger_price = 5
if my_money >= pepperoni_price:
print("Great! You can buy a pepperoni pizza!")
else if my_money >= salad_price:
print("Great! You have enough money to buy a healthy green salad!")
else if my_money >= burger_price:
print("Great! You can buy a delicious bacon & beef burger!")
else:
print("Sadly, you don't have enough money to buy, whether it's a pepperoni pizza or a green salad or a burger.")
# End of program