Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

.WAP to enter monthly sale of Salesman and give him commission i.E. If the monthly sale is more than 500000 then commision will be 10% of monthly sale otherwise 5%

Sagot :

sales = float(input("Enter monthly sales amount: $"))

commission = 0.05

if sales> 500000:

   commission = 0.1

print("You earned: $"+str(sales*commission))

I wrote my code in python 3.8. I hope this helps.