Write a pseudocode that will allow a retail store to process the monthly commission that will be paid to their employees. Your solution will accept the total employees to be processed, and then produce an output showing the commission to be given for each employee, after accepting their name, Taxpayer Registration Number (TRN) and total sales for the month. A 10% commission is given if the total monthly sales is 100,000 or less; however, if the total monthly sales amount exceeds 100,000, the employee gets a commission of 8% of the amount up to and including 100,000 as well as 20% of the amount exceeding 100,000. Â
BEGIN
LET quantity
PROMT "Etner quantity"
INPUT quantity
LET name, TRN, sum
FOR quantity
PROMT "Enter data about employee"
INPUT name
INPUT TRN
INPUT sum
IF (sum <= 100000)
DISPLAY (name, TRN, sum * 10%)
ELSEIF (sum > 100000)
DISPLAY (name, TRN, 100000 * 8% + (sum-100000) * 20%)
ENDIF
ENDFOR
END
Comments
Leave a comment