selection exercise: Jennifer Yardley wants a program that displays the amount of a sales person's commission. A commission is a percentage of the sales made by the sales person.
The commission is shown below:
Sales range Commission
RM 0 - RM 100,000 Sales x 2%
RM 100,001 - RM 400,000 Sales over 100,000 x 5% plus RM 2000
RM 400,001 and over Sales over 400,000 x 10% and add RM
17,000
Example:
Sales 250,000
Commission (RM 250,000 - 100,000) x 0.05 + 2,000 = RM 9,500
Example:
Sales RM 500,000
Commission (500,000 - 400,000) x 0.1 + 17,000 = 27,000
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-48697.pdf
Comments
Leave a comment