Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly 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.

We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.