Here is a very simple program that I wrote in Turbo Pascal for Windows that will ask the user to give a word or a string in all lower case letters and then it will convert it into upper case format.
My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Sample Program Output
Program Listing
uppercase.pas
(* Written By: Mr. Jake R. Pomperada *)
(* May 22, 2018 *)
Program UpperCasePascal;
Uses WinCrt;
Type
MaxStr = String[255];
Var
s : MaxStr;
Function UpCaseStr(s : MaxStr) : MaxStr;
Var
i,j : Integer;
Begin
j := ord(s[0]);
For i := 1 to j Do
s[i] := Upcase(s[i]);
UpCaseStr :=s;
End;
Begin
Write('Uppercase Program in Turbo Pascal');
Writeln;
Writeln;
Write('Written By Mr. Jake R. Pomperada, MAED-IT');
Writeln;
Writeln;
Write('Give a String : ');
Readln(s);
Writeln;
Writeln;
Write('The uppecase equivalent is ' ,UpcaseStr(s),'.');
Writeln;
Writeln;
Writeln('End of Program');
Writeln;
Readln;
End.
No comments:
Post a Comment