Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
0
respuestas

[Proyecto] Sistema de evaluación de desempeño empresarial

ingresos_totales = float(input("Digita los ingresos: "))
gastos_totales = float(input("Digita los gastos totales: "))
nuevos_clientes = int(input("Digita la cantidad de nuevos clientes: "))

# Si ingresos - gastos > $10,000 y más de 50 nuevos clientes → "Trimestre Excelente"
# Si ingresos - gastos > $5,000 y al menos 20 clientes → "Trimestre Bueno"
# Si ingresos - gastos > 0 → "Trimestre Regular"
# Si ingresos - gastos ≤ 0 → "Trimestre Deficitario"

if ingresos_totales - gastos_totales > 10000 and nuevos_clientes > 50:
    print("Trimestre Excelente")
elif ingresos_totales - gastos_totales > 5000 and nuevos_clientes >= 20:
    print("Trimestre Bueno")
elif ingresos_totales - gastos_totales > 0:
    print("Trimestre Regular")
else:
    print("Trimestre Deficitario")