Python Program to Input no. of persons ,sales amt.amt. Find commission of that person based on given condition sales amt. comm



'''0-10000 10% 
10001-20000 20% 
20001-50000 25% 
>50000 30% ''' 

no=int( input ( 'Enter person number' )) 
sa=int( input ( 'Enter sales amt' )) 
com =0 
if (sa>= 0 and sa<= 10000 ): 
    com= 0.1 * sa 
elif (sa<= 20000 and sa> 10000 ): 
    com= 0.2 * sa 
elif (sa> 20000 and sa<= 50000 ): 
    com= 0.25 * sa 
else : 
    com= 0.3 * sa 

print ( 'Number of person = ' , no) 
print ( 'Sale amount = ' , sa) 
print ( 'Comission = ' ,com) 
print ( 'Comission + sales = ' ,(sa+com))


Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.