1
resposta

[Projeto] Faça como eu fiz: iniciando em Python

# ========== SISTEMA HERMEX LOG ==========
print("="*40)
print(" SISTEMA HERMEX LOG ")
print("="*40)

# PARTE 1: STRINGS E MÉTODOS
print("\n MANIPULAÇÃO DE STRINGS")
print("-"*30)
nome_empresa = " hermex log soluções "
print(f"Original: '{nome_empresa}'")
print(f"Maiúsculas: '{nome_empresa.upper()}'")
print(f"Minúsculas: '{nome_empresa.lower()}'")
print(f"Sem espaços: '{nome_empresa.strip()}'")
print(f"Replace: '{nome_empresa.replace('log', 'LOGISTICS')}'")
print(f"Slogan: " + "Sua entrega, nossa prioridade!")

# PARTE 2: VARIÁVEIS E OPERAÇÕES
print("\n CÁLCULO DE CUSTOS")
print("-"*30)
aluguel = 5000
combustivel = 2000
manutencao = 1500
rotas = 10

print(f"Aluguel: R${aluguel}\nCombustível: R${combustivel}\nManutenção: R${manutencao}")
custo_total = aluguel + combustivel + manutencao
custo_rota = custo_total / rotas
print(f"CUSTO TOTAL: R${custo_total}")
print(f"CUSTO POR ROTA: R${custo_rota}")
print(f"Custo anual: R${custo_total * 12}")
print(f"Economia 15% combustível: R${combustivel * 0.15}")

# PARTE 3: ENTRADA DE DADOS
print("\n ENTRADA DE DADOS")
print("-"*30)
nome = input("Seu nome: ")
turno = input("Turno (manhã/tarde/noite): ")
aluguel_real = float(input("Aluguel pago: R$"))
combustivel_real = float(input("Combustível gasto: R$"))
manutencao_real = float(input("Manutenção: R$"))
entregas = int(input("Entregas realizadas: "))

custo_total_real = aluguel_real + combustivel_real + manutencao_real
custo_entrega = custo_total_real / entregas if entregas > 0 else 0

# PARTE 4: ESTRUTURAS CONDICIONAIS
print("\n ANÁLISE DE DESEMPENHO")
print("-"*30)

if custo_total_real <= custo_total:
    status = " DENTRO DO ORÇAMENTO"
    print(f"{status} - Economia de R${custo_total - custo_total_real:.2f}")
elif custo_total_real <= custo_total * 1.1:
    status = " ATENÇÃO - 10% ACIMA"
    print(f"{status} - Excedente R${custo_total_real - custo_total:.2f}")
else:
    status = " CRÍTICO - ACIMA DE 10%"
    print(f"{status} - Excedente R${custo_total_real - custo_total:.2f}")

if entregas > 500:
    print(" EXCELENTE (acima 500)")
elif entregas >= 300:
    print(" BOM (300-500)")
elif entregas >= 100:
    print(" REGULAR (100-299)")
else:
    print(" PRECISA MELHORAR (abaixo 100)")

# PARTE 5: SISTEMA DE AVALIAÇÃO
print("\n AVALIAÇÃO DE DESEMPENHO")
print("-"*30)
experiencia = int(input(f"{nome}, anos de experiência: "))
taxa = float(input("Taxa de entrega no prazo (0-100): "))
feedback = float(input("Feedback clientes (0-10): "))

media = (taxa/10 + feedback) / 2
print(f"Média: {media:.1f}/10")

if media >= 8.5 and taxa >= 95:
    status_op = "APROVADO - PROMOÇÃO!"
elif media >= 7.0:
    status_op = "APROVADO"
elif media >= 5.0:
    status_op = "RECUPERAÇÃO"
else:
    status_op = "REPROVADO"

print(f"Status: {status_op}")

# PARTE 6: RELATÓRIO FINAL
print("\n" + "="*40)
print("RELATÓRIO FINAL")
print("="*40)
print(f"""
Operador: {nome:<15} Turno: {turno}
----------------------------------------
Aluguel:    R${aluguel_real:>8.2f}
Combustível:R${combustivel_real:>8.2f}
Manutenção: R${manutencao_real:>8.2f}
----------------------------------------
TOTAL:      R${custo_total_real:>8.2f}
Custo/entrega:R${custo_entrega:>7.2f}
Entregas:   {entregas:>8}
----------------------------------------
Análise: {status}
Operador: {status_op}
""")

# BÔNUS: MÉTODOS DE STRING
print("\n BÔNUS: MÉTODOS DE STRING")
print("-"*30)
texto = "  Python é incrível!  "
print(f"Original: '{texto}'")
print(f"strip(): '{texto.strip()}'")
print(f"upper(): '{texto.upper()}'")
print(f"lower(): '{texto.lower()}'")
print(f"replace(): '{texto.replace('incrível', 'poderoso')}'")
print(f"split(): {texto.split()}")
print("="*40)
print("PROGRAMA FINALIZADO!")
print("="*40)
1 resposta

Oi, Cleber!

Mandou muito bem no seu projeto! É gratificante ver como você aplicou as operações básicas de Python, desde a manipulação de strings até estruturas condicionais mais completas, para criar uma ferramenta lógica e funcional.

Sucesso

Imagem da comunidade