0% found this document useful (0 votes)
7 views1 page

Sales Staff Commission Calculator

The document outlines a program that calculates commissions for sales staff based on their total sales. If a staff member's sales exceed 50,000, they receive a commission calculated at a rate of 3%, and the program tracks the highest commission value and the number of staff with and without commissions. At the end, it prints the relevant statistics for the sales staff, including names and commission amounts.

Uploaded by

aciamorgang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Sales Staff Commission Calculator

The document outlines a program that calculates commissions for sales staff based on their total sales. If a staff member's sales exceed 50,000, they receive a commission calculated at a rate of 3%, and the program tracks the highest commission value and the number of staff with and without commissions. At the end, it prints the relevant statistics for the sales staff, including names and commission amounts.

Uploaded by

aciamorgang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like