Vous êtes sur la page 1sur 2

print("|============================|")

print("| RESTAURANTE S.A |")


print("| MENÚ |")
print("|============================|")
print("| A |Desayuno |")
print("| B |Almuerzo |")
print("| C |Cena |")
print("| D |========= SALIR ========|")
print("|============================|")
subtotal=0
numero1=input(" ")

#Desayuno
if numero1=="a":
print("|=============================|")
print("| Desayuno |")
print("|=============================|")
print("| A |Café |S/4.50 |")
print("| B |Chocolate |S/5.00 |")
print("| C |Jugo de Fresas |S/9.00 |")
print("| D |Jugo de Papaya |S/8.00 |")
print("| E |Pan con Pollo |S/7.00 |")
print("| F |Pan con Jamón |S/7.00 |")
print("| G |Pan con Tortilla |S/7.00 |")
print("| J |========= SALIR =========|")
print("|=============================|")

Desayuno=input(" ")
if Desayuno=="a":
subtotal+=4.50
elif Desayuno=="b":
subtotal+=5.00
elif Desayuno=="c":
subtotal+=9.00
elif Desayuno=="d":
subtotal+=8.00
elif Desayuno=="e":
subtotal+=7.00
elif Desayuno=="f":
subtotal+=7.00
elif Desayuno=="g":
subtotal+=7.00
elif Desayuno=="j":
print("|=============================|")
print("| GRACIAS |")
print("|=============================|")

#Almuerzo
elif numero1=="b":
print("|=============================|")
print("| Almuerzo |")
print("|=============================|")
print("| A |Café |S/4.50 |")
print("| B |Chocolate |S/5.00 |")
print("| C |Jugo de Fresas |S/9.00 |")
print("| D |Jugo de Papaya |S/8.00 |")
print("| E |Pan con Pollo |S/7.00 |")
print("| F |Pan con Jamón |S/7.00 |")
print("| G |Pan con Tortilla |S/7.00 |")
print("| J |========= SALIR =========|")
print("|=============================|")

Almuerzo=input(" ")
if Almuerzo=="a":
subtotal+=4.50
elif Almuerzo=="b":
subtotal+=5.00
elif Almuerzo=="c":
subtotal+=9.00
elif Almuerzo=="d":
subtotal+=8.00
elif Almuerzo=="e":
subtotal+=7.00
elif Almuerzo=="f":
subtotal+=7.00
elif Almuerzo=="g":
subtotal+=7.00
elif Almuerzo=="j":
print("|=============================|")
print("| GRACIAS |")
print("|=============================|")

#Cena
elif numero1=="c":
print("|=============================|")
print("| Cena |")
print("|=============================|")
print("| A |Pizza Exprés |S/9.50 |")
print("| B |Ensalada Campera |S/7.50 |")
print("| C |Gazpacho |S/6.00 |")
print("| D |Caldo de Gallina |S/6.00 |")
print("| E |Pollo al horno |S/5.50 |")
print("| F |Menestrón |S/4.00 |")
print("| G |========= SALIR =========|")
print("|=============================|")
Cena=input(" ")
if Cena=="a":
subtotal+=9.50
elif Cena=="b":
subtotal+=7.50
elif Cena=="c":
subtotal+=6.00
elif Cena=="c":
subtotal+=6.00
elif Cena=="e":
subtotal+=5.50
elif Cena=="f":
subtotal+=4.00
elif Cena=="g":
print("|=============================|")
print("| GRACIAS |")
print("|=============================|")

else:
print("|=============================|")
print("| Valor Incorrecto |")
print("|=============================|")

IGV1=subtotal*0.18
IGV1=str(IGV1)
IGV2=(IGV1[0:3])
IGV2=str(IGV2)
TOTAL1=subtotal*1.18
TOTAL1=str(TOTAL1)
TOTAL2=(TOTAL1[0:3])
TOTAL2=str(TOTAL2)

print("|==============================|")
print("| BOLETA DE VENTA |")
print("|==============================|")
print("| Subtotal : ",(subtotal),"|")
print("| Igv : ",(IGV2),"|")
print("| Total a pagar: ",(TOTAL2),"|")
print("|==============================|")
print("| Gracias por tu compra |")
print("|==============================|")

Vous aimerez peut-être aussi