{Problem statement : This algorithm will prompt the user to enter student names,
number of subjects passed and special awards. This algorithm will determine the
special certificate type also the algorithm will calculate each students penalty fees
, graduation fees total graduation fees , outstanding fee status and also calculate
the amount of offences committed by each student . Finally the algorithm will
compare
the Total Graduation Fee to the budget of $2500 determining if the graduation fee is
greater than, equal to or less than the budget.}
const
Budg=2500; //stores the budget set for the graduation//
Stdfee=275; //stores the standard fee for each student//
Flt_fee=195; //stores the flat fee of each student//
Intrst=0.35; //stores the interest applied to penalty fee//
var
For A:=1 to 3 Do
Begin
Writeln ('Enter student''s first name: ');
Readln (F_name [A]);
Writeln ('******************************');
Writeln ('Enter student''s last name: ');
Readln (L_name [A]);
CertI_Type[A]:='Platinum';
writeln (Certi_Type[A],' ', 'certificate is given');
Tot_PlatCert:= Tot_PlatCert + 1;
End
End
Else If (No_SubPass[A] >9) and (No_SubPass[A] <=11) Then
begin
Certi_Type[A]:='Silver';
Writeln (Certi_Type[A],' ', 'certificate is given');
Tot_SilvCert:=Tot_SilvCert + 1;
End
End;
End
Gradu_Fee[A] := StdFee;
end;
end
end;
readln;
end;
End.