+ 4
I am reposting my sales commission code after editing.
It is working now. Please give me an upvote if you feel it is good. https://code.sololearn.com/cYc1A9t77Rnd/?ref=app
2 Answers
+ 11
Beautiful code and works nice. Hope to see more code from you.
As a little improvement, you can feed sales amount (also commission rate) with a random number generator.
sale = min sale + rand() % (max sale + 1 - min sale)
+ 2
Thanks Babak.