IDNLearn.com offers a user-friendly platform for finding and sharing answers. Discover in-depth and reliable answers to all your questions from our knowledgeable community members who are always ready to assist.

.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.

We appreciate every question and answer you provide. Keep engaging and finding the best solutions. This community is the perfect place to learn and grow together. Find precise solutions at IDNLearn.com. Thank you for trusting us with your queries, and we hope to see you again.