Produce a hierarchy chart, a structured flowchart, and a Pascal program (with appropriate comments) to generate the Sales Commission Report shown below. The commission for each sales person is calculated as 3% of sales (sales multiplied by 0.03).
Each sales person has a single input record with fields of SSN, Name, and their sales. Your program should assume an unknown number of records and terminate the program after the last data record has been read.
Data for the program will consist of
Field Type Size Suggested Name ssn character 9 DRONE_ID (Hint: read as string not number.)
name character 18 DRONE_NAME
sales numeric 7,2 SALES
and will be in a file (PRG2-150.DAT) found in the DATA directory.
The printer layout form for the Sales Commission Report is
Your HEADER module would resemble
procedure header;
begin
writeln(FileOut,Space(16),'SALES COMMISSION REPORT');
writeln(FileOut);
writeln(FileOut,'bbbSSN',Space(10),'SALESPERSON',Space(9),'SALESbbbbCOMMISSION');
writeln(FileOut)
end;