print ("ej1:")
Not= float(input("Ingrese su nota: "))
if Not <= 10:
print("c")
elif Not <= 15 :
print("b")
elif Not <=18 :
print("a")
elif Not <=20 :
print("ad")
else :
print ("Nota no encontrada")
print ("ej1:")
Not1= float(input("Ingrese su nota de matematica: "))
Not2= float(input("Ingrese su nota de lenguaje: "))
Not3= float(input("Ingrese su nota de historia: "))
prom = (Not1 + Not2 + Not3) /3
if prom <= 10:
print("El promedio de sus 3 cursos es", prom , "y usted tiene una nota malo")
elif prom <= 15 :
print("El promedio de sus 3 cursos es", prom , "y usted tiene una nota REGULAR")
elif prom <=18 :
print("El promedio de sus 3 cursos es", prom , "y usted tiene una nota BUENO")
elif prom <=20 :
print("El promedio de sus 3 cursos es", prom , "y usted tiene una nota EXCELENTE")
else :
print ("NOTA NO EXISTE")
print ("ej2:")
dia = str(input("ingrese dia de la semana: "))
if dia == "lunes":
print("L")
elif dia == "martes" :
print("MA")
elif dia == "miercoles" :
print("MI")
elif dia == "jueves" :
print("J")
elif dia == "viernes" :
print("V")
elif dia == "sabado" :
print("S")
elif dia == "domingo" :
print("D")
else :
print ("DIA NO EXISTE")
print ("ej3:")
nu1 = int(input("ingrese primer numero"))
nu2 = int(input("ingrese segundo numero"))
nu3 = int(input("ingrese tercer numero"))
nu4 = int(input("ingrese cuarto numero"))
print ("ej4:")
ed = int(input("ingrese su edad: "))
if ed < "18":
print("MENOR DE EDAD")
elif ed < "65" :
print("MAYOR DE EDAD")
else :
print ("TERCERA EDAD")
print ("ej5:")
numero = int(input("Ingrese su numero: "))
if numero <= "599":
print("MALO")
elif numero <= "749" :
print("PROMEDIO")
elif numero <= "899" :
print("BUENO")
elif numero <= "999" :
print("MEXCELENTE")
else :
print ("NO ENCONTRADO")
print ("ej6:")
val = int(input("INgrese vaolor de su viaje"))
if val <= "50":
print("5500")
elif val <= "90" :
print("7500")
elif val <= "135" :
print("9500")
else :
print ("10500")
print ("ej7:")
pro = float(input("Ingrese su promedio:"))
if pro < "2.0":
print("PIERDE")
elif pro < "3.0" :
print("HABILITA")
else :
print("GANA")
print ("ej8:")
dias = int(input("Ingrese los dias que trabajo: "))
horas = float(input("ingrese sus horas trabajadas por dia"))
preho = float(input("ingrese precio por hora trabajada: "))
horasex = float(input("ingrese sus horas extras trabajadas por dia"))
prextra = float(input("ingrese precio por hora extra trabajada:"))
sueldototal = (dias *horas *preho) + (dias *horasex *prextra)
if sueldototal < "101" :
print("sueldototal+10",)
elif sueldototal < "501" :
print("sueldototal+30")
elif sueldototal < "1501" :
print("sueldototal+50")
else :
print("sueldototal+100")
if sueldototal < "101" :
print("sueldototal - sueldototal*0.03")
elif sueldototal < "2001" :
print("sueldototal - sueldototal*0.04")
else :
print("sueldototal - sueldototal*0.05")