Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numDealers = int(input('Enter the number of dealers.'))
- index=0
- array = index
- name = [0]*array
- sales = [0]*array
- comm = [0]*array
- x = 1
- while x <= numDealers:
- for index in range(0,array):
- name[index] = int(input('Enter the dealer name.'))
- sales[index] = int(input('Enter the dealer sales.'))
- for index in range(0,array):
- if sales[index] < 0:
- print('Amount cannot be negative. Try again.')
- x=x+1
- array=index
- for index in range(0,array):
- if sales[index] >= 1 and sales[index] <= 5000:
- comm[index] = (sales[index]* 0.05)
- if sales[index] >= 5000 and sales[index] <= 15000:
- comm[index] = (sales[index]* 0.10)
- if sales[index] >= 15000:
- comm[index] = (sales[index]* 0.12)
- print(sales[index])
- print(comm[index])
- print(name[index])
- search = print(input('What is a dealer name?'))
- if search != (name[index]):
- print('Error')
- else print(sales[index]) and print(comm[index])
Advertisement
Add Comment
Please, Sign In to add comment