May-01-2018, 09:41 AM
#Print A Simple Payroll Report name = ['Hai', 'Bell', 'Cindy', 'Danny', 'Eddy', 'Felicia', 'Gigi', 'Apple','Indie','Jacon','Kim','Lim'] hours = [10, 45, 60, 70, 20, 35, 80, 30, 65, 55, 15, 90] rate = 9.5 n = len(name) print('\n\t Payroll Report\n') print('No.\tEmployee Name\tHours\tSalary(RM)') for i in range(n): if hours <= 40: wage = hours*rate elif hours <= 60: wage = 380 + (hours + 40) * rate * 1.5 else: 665 + (hours + 60) * rate * 2.0 print('%d\t%s\t%d\t%s' % (i+1, name[i], hours[i], wage))
Why is it not supported?
Or did I miss something?