Python Código
Python Código
Def mostrar_menu_principal():
Print(“1. Desayuno”)
Print(“2. Almuerzo”)
Print(“3. Cena”)
Print(“4. Salir”)
Def mostrar_menu_desayuno():
Def mostrar_menu_almuerzo():
Def mostrar_menu_cena():
Print(“----- MENÚ DE CENA -----“)
Def generar_boleta(subtotal):
Subtotal = 0.0
#Codigo Principal
While True:
Mostrar_menu_principal()
If opcion_principal == “1”:
While True:
Mostrar_menu_desayuno()
Subtotal += 4.50
Subtotal += 5.00
Subtotal += 9.00
Subtotal += 8.00
Subtotal += 7.00
Subtotal += 7.00
Subtotal += 7.00
Break
Else:
While True:
Mostrar_menu_almuerzo()
Subtotal += 13.50
Subtotal += 13.50
Subtotal += 9.00
Subtotal += 12.00
Subtotal += 10.00
Subtotal += 13.00
Subtotal += 12.50
Break
Else:
While True:
Mostrar_menu_cena()
Subtotal += 9.50
Subtotal += 7.50
Subtotal += 6.00
Subtotal += 6.00
Subtotal += 5.50
Subtotal += 4.00
Subtotal += 13.00
Break
Else:
Break
Else:
Generar_boleta(subtotal)