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.

Python Program which will find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number.The numbers obtained should be printed in a comma-separated sequence on a single line