Question: Write a program that includes two functions. The first function should ask a salesperson for the dollar value of daily sales and then return this

Write a program that includes two functions. The first function should ask a salesperson for the dollar value of daily sales and then return this figure to the main program. The second function should calculate the salesperson's commission based on the following rates:


Sales..............................Commission

0-999.....................................3%

1,000-2,999..........................3.5%

3,000-up...............................4.5%

The dollar value of the calculated commission should be returned to the main program, which then displays it.

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To tackle the problem of creating a program with two functions for calculating a salespersons commis... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

60999b67e68e9_29849.pdf

180 KBs PDF File

Word file Icon

60999b67e68e9_29849.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!