Professional Documents
Culture Documents
# Definir variables
igv = float()
mnto = float()
totalfac = float()
imp = float()
op = str()
des = str()
alm = str()
cn = str()
igv = 0.18
while True:
while True:
op = input()
op = str.lower(op)
print("Entrada inválida")
if op=="a":
while True:
des = input()
des = str.lower(des)
print("Entrada inválida")
if des=="a":
mnto = 4.50
imp = mnto*igv
totalfac = mnto+imp
elif des=="b":
mnto = 5.00
imp = mnto*igv
totalfac = mnto+imp
elif des=="c":
mnto = 3.00
imp = mnto*igv
totalfac = mnto+imp
elif des=="d":
mnto = 3.00
imp = mnto*igv
totalfac = mnto+imp
elif des=="e":
mnto = 7.00
imp = mnto*igv
totalfac = mnto+imp
elif des=="f":
mnto = 2.00
imp = mnto*igv
totalfac = mnto+imp
elif des=="g":
mnto = 8.00
imp = mnto*igv
totalfac = mnto+imp
elif op=="b":
while True:
alm = input()
alm = str.lower(alm)
print("Entrada inválida")
if alm=="a":
mnto = 30.50
imp = mnto*igv
totalfac = mnto+imp
elif alm=="b":
mnto = 5.00
imp = mnto*igv
totalfac = mnto+imp
elif alm=="c":
mnto = 20.00
imp = mnto*igv
totalfac = mnto+imp
elif alm=="d":
mnto = 35.00
imp = mnto*igv
totalfac = mnto+imp
elif alm=="e":
mnto = 28.00
imp = mnto*igv
totalfac = mnto+imp
elif alm=="f":
mnto = 35.00
imp = mnto*igv
totalfac = mnto+imp
elif alm=="g":
mnto = 28.00
imp = mnto*igv
totalfac = mnto+imp
elif op=="c":
while True:
cn = input()
cn = str.lower(cn)
print("Entrada inválida")
if cn=="a":
mnto = 12.50
imp = mnto*igv
totalfac = mnto+imp
elif cn=="b":
mnto = 7.50
imp = mnto*igv
totalfac = mnto+imp
elif cn=="c":
mnto = 5.00
imp = mnto*igv
totalfac = mnto+imp
elif cn=="d":
mnto = 8.00
imp = mnto*igv
totalfac = mnto+imp
elif cn=="e":
mnto = 5.50
imp = mnto*igv
totalfac = mnto+imp
elif cn=="f":
mnto = 4.00
imp = mnto*igv
totalfac = mnto+imp
# Mostrar resultados
if op=="d": break