You are on page 1of 1

{Program to verify status of motorist}

{Ajay Williams Kimani Scott, Dehvonte Campbell}

Program MotoristStatus(input,output);

var
F_Name,L_Name,Parish,TRN:string;
Fines_Due, Fines_Paid,Count:integer;

Begin
for Count := 1 to 6 do
WRITELN ('Enter the name of the motorist');
READLN F_Name
READLN L_Name
WRITELN ('Enter the TRN of the motorist');
READLN TRN
WRITELN ('Enter the parish');
READLN Parish
WRITELN ('Enter the fines due');
READLN Fines_Due
WRITELN ('Enter the fines paid');
READLN Fines_paid

If Fines_paid =0 then
WRITELN ('The name of the motorist is',F_Name, L_Name);
WRITELN ('The motorist will attend court');
End
Else
Begin

WRITELN ('The name of the motorist is', F_Name, L_Name');


WRITELN ('The motorist will not attend court');
End;

end
End.

You might also like