WHLP - Pascal Programming
WHLP - Pascal Programming
Department of Education
Region IV-A CALABARZON
SCHOOLS DIVISION OF BACOOR
BACOOR NATIONAL HIGH SCHOOL MOLINO MAIN
MOLINO I, CITY OF BACOOR, CAVITE
6:00- 6:30 Wake up, meditate and pray to God, make up your bed, eat breakfast, and get ready for an awesome day!
6:30 - 7:30 Have a short exercise/bonding with family and prepare for the lesson.
MONDAY TLE – ICT SSC-9 L.O.1 Identify the components of LEARNING OBJECTIVES: Online submission
Turbo PASCAL environment ➢ Define Pascal through Google
➢ Give the components of Turbo Pascal environment Classroom
➢ Explain the steps in creating a program
PASCAL
The PASCAL programming language was developed by Niklaus
Wirth, a Swiss computer scientist in early 1970’s. This
programming language was designed intentionally to teach
structural programming concepts, principles, and paradigm to
future programmers. This can be done by strictly enforcing a set of
rules(syntax) regarding the declaration of variables, program
structure, and flow of control.
COMPONENTS OF A TURBO PASCAL ENVIRONMENT
Menu Bar – is at the top of the screen containing a list of menus
(e.g. File, Edit,Compile)
Desktop – is the area in the middle of the screen at which several
different types of windows
Status Bar – is at the bottom of the screen containing a list of
shortcut keys (e.g. F1-help, F2-Save). It also serves as a source of
user’s help.
Title Bar – is the name of the active window
Window Number – is an identifying number of window
Zoom Box – is used to view the window to a full screen
Close Box – is used for closing the active window
Frame – is a window border
Scroll Bar – is used to scroll the contents of the window
horizontally or vertically
Resize Corner – is used to change the size of the window
LEARNING TASK 1: IDENTIFY THE PARTS OF TURBO PASCAL
WINDOW
6 7
1
8.
9.
3
4.
5. 10.
Reference:
https://alternativeto.net/software/turbo-pascal/
Turbo Pascal , Tito B. Amoto Jr. et.l p. 1- 13
TUESDAY TLE – ICT SSC-9 L.O.1 Identify the components of DIALOG BOX Online submission
A typical box asks a user to provide a number of pieces of
Turbo PASCAL environment information and may change the data as many times as user through Google
wishes to Classroom
List
Input
Action
Buttons
WEDNESDAY TLE – ICT SSC-9 LO2 Identify the steps in creating To Create a program Online submission
a program Mouse Technique through Google
1. Click the File menu Classroom
2. From the File submenu click the new command.
3. Type your program
Keyboard Technique
1. Press Alt + F to activate the File menu
2. Choose the New Command
3. Press Enter
4. Type your program
To save a new program
Mouse Technique
1. Click the File menu
2. From the File menu, click the SAVE AS command.
3. From the input box, type your program name.
4. Click the OK button.
Keyboard Technique
1. Press Alt + F to activate the menu.
2. Use the ARROW key to go to the SAVE AS command.
3. Press Enter.
4. Press Tab until you reach the input box.
5. From the input box, type your program name.
6. Press Tab again until you reach the OK action button.
7. Press Enter
To save an edited program
Mouse Technique
1. Click the File menu.
2. From the File submenu. Click the SAVE command.
Keyboard Technique
Method1
1. Press Alt + F to activate the File menu
2. Use the ARROW keys to go to the SAVE command.
3. Press Enter
Method 2
Press F2
To open a program
Mouse Technique
1. Click the File menu.
2. From the File submenu, click the OPEN command
3. From the list box, choose the file or the directory where the file
resides
4. Click the OK button
Keyboard Technique
1. Press Alt + F to activate the File menu.
2. Use the ARROW keys to go to the OPEN command
3. Press Enter
4. Press Tab until you reach the input box
5. From the input box, type your program name.
6. Press Tab again until you reach the OK action button.
7. Press Enter
Compile – To check whether there are syntax error in the program
To Compile a program
Mouse Technique
1. Click the compile menu
2. From the Compile menu, click the COMPILE command.
Keyboard Technique
Method1
1. Press Alt + C to activate the Compile menu
2. Use the Arrow keys to go to the Compile command.
3. Press Enter
Method2
Press Alt + F9
LEARNING TASK 3 – Arrange the steps
Direction: Arrange the ff. steps chronologically, write step 1 for 1st
step, 2 for second step and so on.
Creating a Program
______Type your program
______Click the file menu
______From the File submenu, click the NEW command
Save a new program
_____From the input box, type your program name.
_____Click the OK button.
_____From the File submenu, click the SAVE AS command.
_____Click the file menu
To Quit Turbo Pascal
______Press Enter
______Press Alt + F
______Use the arrow keys to go to the exit command
Reference:
https://alternativeto.net/software/turbo-pascal/
Turbo Pascal , Tito B. Amoto Jr. et.l p. 1- 13
THURSDAY TLE – ICT SSC-9 LO2 Identify the steps in creating Sample Program
a program program sample;
uses crt;
begin
clrscr;
write(‘Welcome to Turbo Pascal’);
readln;
end
LEARNING TASK 4 – First Sample Program
Direction: Redo the sample source code and change the text
“Welcome to Turbo Pascal!” with “This is my first sample
program”, save your file with a new filename using your lastname
plus the task no., ex. CruzTask4
Reference:
https://alternativeto.net/software/turbo-pascal/
Turbo Pascal , Tito B. Amoto Jr. et.l p. 1- 13
Prepared by: