START
INPUT name
INPUT ttl_sales
INPUT ttl_staff = 18
INPUT with_comm = 0
INPUT without_comm = 0
INPUT comm_rate = 0.03
INPUT highest_comm_value = 0
FOR 1 to ttl_staff DO
PRINT “Enter the name of the sales staff”
READ name
PRINT “Enter the total sales”
READ total sales
IF ttl_sales >= 50000 THEN
comm = ttl_sales*comm_rate
w_comm = w_comm + 1
IF comm > highest_comm_value THEN
highest_comm_value = comm
END IF
ELSE
Comm = 0
without_comm = without_comm + 1
END IF
PRINT “The name of the sales staff is”, name
Print “Their commission is”, comm
Print “Their total sales is”, ttl_sales
END FOR LOOP
Print “The number of sales staff with commission is”, with_comm
Print “The number of sales staff without commission is”, without_comm
Print “The highest commission value is”, highest_comm_value
Print “The sales staff with the highest commission is”, highest_comm_name
END