Write a program that displays the commission of a salesman using two functions.
ID: 3630817 • Letter: W
Question
Write a program that displays the commission of a salesman using two functions. The first function is called to prompt and get sales amount from user and the sale amount is returned to the main module. The second function is called to calculate the commission and return the value to the main module. The Main Module will display the sales and the commission.Procedure or Details:
The following table is used to calculate the commission:
Sale Amount Commission
---------------- ---------------------------
0 – 999 3.5%
1000 – 1999 4.0%
2000 – 2999 4.5%
3000 or above 5.0%