The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
~~~MUST BE IN PYTHON~~~
Â
(Financial application: compute commissions) Write a function that computes
the commission, using the scheme in Exercise 5.39. The header of the function is:
def computeCommission(salesAmount):
Write a test program that displays the following table:
Sales Amount Commission
10000 900.0
15000 1500.0
...
95000 11100.0
100000 11700.0
Â

Â

Â
OUTPUT:
>>> salesAmount Commission 10000 900.0 15000 1500.0 20000 2100.0 25000 2700.0 30000 3300.0 35000 3900.0 40000 4500.0 45000 5100.0 50000 5700.0 55000 6300.0 60000 6900.0 65000 7500.0 70000 8100.0 75000 8700.0 80000 9300.0 85000 9900.0 90000 10500.0 95000 11100.0 100000 11700.0 >>>
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll