Created
February 10, 2020 16:26
-
-
Save ibitebyt3s/a3b4016070765e7378fc9f5d8af797f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
sueldo = float(input("Intoduce tu sueldo: ")) | |
except ValueError: | |
print("Datos incorrecto") | |
quit() | |
impuesto = 0 | |
if sueldo == 0: | |
print("Nada a que aplicarle impuesto") | |
elif sueldo > 0 and sueldo < 7500: | |
impuesto = 3.45 | |
elif sueldo >= 7500 and sueldo < 14500: | |
impuesto = 5.78 | |
elif sueldo >= 14500 and sueldo < 23000: | |
impuesto = 7.23 | |
else: | |
impuesto = 8.63 | |
print("Impuesto:", impuesto) | |
print("impuesto agregado", sueldo * impuesto) | |
print("Sueldo mas impuesto: ", sueldo - ((sueldo * impuesto)/100)) | |
############################################################################# | |
try: | |
x = int(input("Eje X: ")) | |
y = int(input("Eje Y: ")) | |
if x == 0 and y == 0: | |
print("En el origen") | |
elif x == 0 and y != 0: | |
print("En el eje X") | |
elif x != 0 and y == 0: | |
print("En el eje Y") | |
elif x > 0: | |
if y > 0: | |
print("Cuadrante I") | |
else: | |
print("Cuadrante IV") | |
else: | |
if y > 0: | |
print("Cuadrante II") | |
else: | |
print("Cuadrante III") | |
except ValueError: | |
print("Datos incorrectos") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment