Bill
Bill
total_amount = calculate_total_amount(order)
print("\n********** Total Amount **********")
print(f"Total Amount (including GST): Rs. {total_amount:.2f}")
print("Thank you for choosing our services!")
# Cake menu
cake_menu = [
{'name': 'Chocolate Cake', 'weight': 1, 'price': 500},
{'name': 'Vanilla Cake', 'weight': 1, 'price': 450},
{'name': 'Dutch truffle Cake', 'weight': 1, 'price': 550},
{'name': 'Diwali Cake', 'weight': 1, 'price': 550},
{'name': 'Holi Cake', 'weight': 1, 'price': 550},
{'name': 'butterscotch Cake', 'weight': 1, 'price': 550},
1
choice = input(
"Enter the cake number you want to order (0 to finish): ")
if choice == '0':
break
cake_choice = cake_menu[int(choice) - 1]
weight = float(
input(f"How many kg of {cake_choice['name']} would you like to order? "))
quantity = int(input("Enter the quantity: "))
order['cakes'].append(
{'weight': weight, 'quantity': quantity, 'price': cake_choice['price']})
# Main program
take_order()