Monday, September 16, 2019

Records Example in Pascal

In this example program that I wrote using Pascal as my programming language, it will demonstrate how to use records to display the information of a book. I am using Free Pascal as my Pascal compiler in writing this program.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.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.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com.






Sample Program Output


Program Listing

records_example.pas

Program Records_Example;

Uses Crt;

Type
Str100    = String[100];
TBookRec =
Record
Title, Author, ISBN : Str100;
Price : Real;
End;

Var
    myBookRec : TBookRec;

Begin
        Clrscr;
        Write('Records Example in Pascal');
        writeln;
        Write('Created By Jake R. Pomperada');
        writeln;
        myBookRec.Title  := 'Beginners Guide to C++ Programming';
myBookRec.Author := 'Jake Rodriguez Pomperada';
myBookRec.ISBN   := '978-621-406-195-2';
myBookRec.Price  := 453.71;

        Writeln; Writeln;
Writeln('BOOK DETAILS REPORT');
Writeln;
Writeln('Title:  ', myBookRec.Title);
Writeln('Author: ', myBookRec.Author);
Writeln('ISBN:   ', myBookRec.ISBN);
        Writeln('Price: PHP ', myBookRec.Price:10:2);
        Writeln;
        Write('End of Program');
        Writeln;
Readln;
End.





No comments:

Post a Comment