import os
def verificar(dato):
while dato == "":
print("Error, valor vacio!")
dato = input("Ingrese nuevamente: ")
return dato
def convertir(valor):
while valor.isdecimal() == False:
print("Error, solo numeros enteros")
valor = input("Ingrese nuevamente: ")
valor = int(valor)
return valor
def menu():
print(
"""
McDowell´s
Recuerda que siempre hay que recibir al cliente con una sonrisa :)
1 – Ingreso de nuevo pedido
2 – Cambio de turno
3 – Apagar sistema
""")
####################################################################################################
while True:
print("Bienvenido a McDowell´s ")
encargado = input("Ingrese su nombre encargad@: ")
menu()
opcion = input(">>> ")
opcion = verificar(opcion)
opcion = convertir(opcion)
csimple = 650
cdoble = 700
ctriple = 800
flurby = 250
while opcion == 1:
s = input("Ingrese cantidad Combo S: ")
s = verificar(s)
s = convertir(s)
d = input("Ingrese cantidad Combo D: ")
d = verificar(d)
d = convertir(d)
t = input("Ingrese cantidad Combo T: ")
t = verificar(t)
t = convertir(t)
f = input("Ingrese cantidad Flurby: ")
f = verificar(f)
f = convertir(f)
totals = s*csimple
totald = d*cdoble
totalt = t*ctriple
totalf = f*flurby
total_total = totals + totald + totalt + totalf
print("total:", total_total)
abona = input("Abona con $ >>> ")
abona = verificar(abona)
abona = convertir(abona)
vuelto = abona - total_total
print("vuelto: ", vuelto)
menu()
opcion = input(">>> ")
opcion = verificar(opcion)
opcion = convertir(opcion)
os.system("cls")
if opcion == 2:
pass
elif opcion == 3:
print("adios")
break
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}