transporte = 0.20
bonificacion = 0.10
salud = 0.04
pension = 0.04
retefuente = 0.05
numeroEmpleados = int(input('Digite la cantidad de empleados: '))
for i in range(1,numeroEmpleados+1):
DNI = input('Digite su numero de DNI: ') NOMBRE = input('Digite su nombre completo: ') SALARIO = float(input('Digite el salario del empleado: '))
print('\n============== DATOS DEL EMPLEADO ===========')for i in range(1,numeroEmpleados+1):
print('Nombre: %s ' %NOMBRE) print('Documento: %s ' %DNI) print('\n')
print('=============== PAGOS ==============') print('Salario: %.2f' %SALARIO) b = SALARIO * bonificacion #Bonificacion de servicios
print('Bonificacion de servicios: %.2f' %b) t = SALARIO * transporte #Subsidio de transporte
print('Subsidio de transporte: %.2f' %t)
print('\n') print('=============== DESCUENTOS ============') sa = SALARIO * salud
print('Salud: %.2f' %sa) pen = SALARIO * pension
print('Pension: %.2f' %pen) rete = SALARIO * retefuente
print('Retefuente: %.2f' %rete)
print('\n') print(' ======== TOTALES ======') #Total Pagos
tp = SALARIO + b + t
#Total descuento
tdes = sa + pen + rete
#Total a pagar
neto = tp - tdes
print('Total pagos: %.2f' %tp) print('Total descuento: %.2f' %tdes) print('Neto a pagar: %.2f' %neto)