0% found this document useful (0 votes)
7 views2 pages

Commisssion Calculators

This program determines commission for sales consultants at DSS. It calculates commission as 5.25% of monthly sales over $10,000. It displays the total monthly sales, number of consultants receiving commission, total commission paid, and the consultant with the highest commission. It then lists each consultant who received commission along with their individual payout.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Commisssion Calculators

This program determines commission for sales consultants at DSS. It calculates commission as 5.25% of monthly sales over $10,000. It displays the total monthly sales, number of consultants receiving commission, total commission paid, and the consultant with the highest commission. It then lists each consultant who received commission along with their individual payout.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Program commission_Calculator;

{*Author: Miss John Baptiste. Date Created: February 18th 2024.


Project Description: This program is going to determine if the sales consultants
at DSS qualify for commission . This program is also going to display the following
information at the end: The number of sales consultant who received commission, The

names of the sales consultants along with the commission ($) received for each,
The sales consulant with the highest commission and the total commission received
and the total sales made in the month *}

Const

MaxConsultants = 100;
Requirement = 10000.00;
rate = 0.0525;

Var

SalesConsultant: array [1..MaxConsultants] of string; {*This is an array that


stores the name of the sales consultants*}
MonthSale: array [1..MaxConsultants] of real; {*This is an array that stores the
total sales made in the month for each sales consultants*}
Commission: array [1..MaxConsultants] of real;

Num,x,count, highindex: Integer;

GrandTotalMonthSale,GrandTotalCommission: Real;
Highestrep: String;

Begin

GrandTotalCommission := 0;
GrandTotalMonthSale := 0;
count := 0;
highindex := 1;

write('WELCOME! This program is going to determine the commissions for each Sales
Conultant at DSS. ');
writeln(' ');
writeln(' ');
write('Enter the number of sales consultants: ');
readln(Num);
writeln(' ');

for x := 1 to Num do
begin

write('Enter the name of sales consultant ', x, ': ');


readln(SalesConsultant[x]);
write('Enter the total sale of the month for ', SalesConsultant[x], ': $');
readln(MonthSale[x]);
writeln(' ');

GrandTotalMonthSale := GrandTotalMonthSale + MonthSale[x];


If MonthSale[x] > Requirement then
begin
Commission[x] := MonthSale[x] * rate;
GrandTotalCommission:= GrandTotalCommission + Commission[x];
count := count + 1;

if Commission[x] > Commission[highindex]then


begin
highindex := x;
Highestrep := SalesConsultant[x];
end;

end;

end;

writeln(' ');
writeln('SUMMARY: ');

writeln(' ');
writeln(' ');
writeln('The grand total for the sales of the month is: $',
GrandTotalMonthSale:2:2);
writeln('The number of Sales Consultants who received a commission is: ',
count,' .');
writeln('The grand total commission received for the month of January is:
$',GrandTotalCommission:2:2);
writeln('The Sales Consultant with the highest commission is: ',Highestrep);

writeln(' ');
writeln(' ');
writeln('LIST OF SALES CONSULTANTS WHO RECEIVED COMMISSION:');
writeln(' ');

for x := 1 to Num do
begin

If Commission[x] <> 0.00 then


begin
Writeln('Name: ',SalesConsultant[x], ' || ',' Commission Received:
$',Commission[x]:2:2);

end;

end;

End.

You might also like