Computer Science, asked by kkb007007, 2 months ago

Write a python program to accept Sales amount and calculate and display Sales made
commission on the basis of sales given :
Sales Commission
>500000 20%
200000-500000 10%
100000-200000 5%
50000-10000 2%
<50000 0%

Answers

Answered by jai696
8

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def calc_commission(sales):

if sales > 500000:

return sales * .2

if 200000 <= sales <= 500000:

return sales * .1

if 100000 <= sales <= 200000:

return sales * .05

if 10000 <= sales <= 50000:

return sales * .02

return 0

sales = float(input("enter sales: "))

print(f"commission: {calc_commission(sales)}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by rehan6725rail
1

I am a little bit of a mission to help me with this message was automatically generated by Gmail ma bhi kaha tha ki sab se poochh lena usko aata hai is liye ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha hai to the world of the world of the same to you dear ma please let other people hi nahi aa raha hai to the same to the same ho kya AAP ka test laga na ho jaye to you bro to the app also be able or willing I am in the same to the same person who works in science and science and 96 in a year ago the same ho kya baat hai

Similar questions