Program Txnman_Studies;
uses crt;
Const
Payment = 1050 ;
Var
Name,Trn:String;
Y2,M6,Currentpoints,Y2Total,M6Total,S1Total,S1:Integer;
Cost:Real;
Begin
Writeln('Made by TnxMan');
Y2:=0;
M6:=0;
S1:=0;
Repeat
writeln('enter a name');
readln(name);
writeln('enter TRN');
readln(TRN);
Writeln('enter Currentpoints');
readln(currentpoints);
if currentpoints>=19 then
Begin
writeln('suspended 2 years');
Y2:=Y2+1;
Y2Total:=Y2Total+ Cost;
Cost:= Payment * Currentpoints;
Writeln('Offender',Name);
Writeln('Cost of Ticket',Cost);
End;
if (Currentpoints>=10) and (Currentpoints<= 13) Then
Begin
Writeln('6 month suspension');
M6:=M6+1;
Cost:= Payment * Currentpoints;
M6Total:=M6Total+Cost;
Writeln('Offender',Name);
Writeln('Cost of Ticket',Cost);
End;
if (Currentpoints>=14) and (Currentpoints<19) then
Begin
writeln('suspended 1 year');
S1:=S1+1;
Cost:= Payment * Currentpoints;
S1:=S1Total+Cost;
Writeln('Offender',Name);
Writeln('Cost of Ticket',Cost);
End;
Until Currentpoints ='999';
Writeln ('count of suspension 2 years',Y2);
Writeln ('count of suspension 6 months',M6);
Writeln ('count of suspension 1 year',S1);
Writeln ('2 years collection', Y2Total);
Writeln ('6 months collection',M6Total);
Writeln ('1 year collection',S1Total);
Readkey;
End.
I've been getting this 2 errors
57 / 10 progra~1.pas
Error: Incompatible types: got "LONGINT" expected "SHORTSTRING" with Until Currentpoints >'999'; Highlighted.
And the other error is
63 pascal~1.pas
Fatal: There were 1 errors compiling module, stopping
Mine helping me find the error?
