0% found this document useful (0 votes)
17 views

Lesson 1 - Fundamentals of Programming

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Lesson 1 - Fundamentals of Programming

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

1

UNIT 1
Program it! Learn the Basics of
Programming Using Small Basic
Reference: REX Education | Innovative Training Works (Grade 7 – Revised Edition)
LESSON 1

FUNDAMENTALS OF
PROGRAMMING

TEACHER DANNY
3

OBJECTIVES OF THE LESSON


In this lesson, you should be able to learn the following:

Show understanding of what programming is;


Identify the different classifications of programming
languages;
Open and explore the Small Basic Program:
Use the TextWindow object; and
Recognize the difference between Write and WriteLine.
4

KNOW AND LEARN!


5

What is Computer Programming?


The program has an executable form
that the computer can use directly to
perform instructions.
6

Computer Program
A computer program is a series
of instructions written to
perform a specific task on a
computer.
7

Programmer
A programmer is a person who
writes, develops, and debugs the
computer program.
8

Programming
is the art and science of creating
Programs. It is the process
performed by programmers to
instruct a computer on how to do a
certain task.
9

Programming Language
is a tool used by programmers to write
commands or program. It is form of
communication that programmers use
to develop applications, script, or
other sets of instructions for a
computer to execute
10

CLASSIFICATION OF
PROGRAMMING
LANGUAGES
11

Classified accordingly
1. Machine Language
2. Assembly Language
3. High level language
4. Object-oriented/Even-driven language
12

MACHINE LANGUAGE
It is the only language that a computer can
understand. It only understands binary
system which uses two numbers, Os and
1s, known as the machine codes.
13

ASSEMBLY LANGUAGE
Assembly uses mnemonics instead of Os
and 1s to simplify the programmers; way of
creating programs. It uses English like
abbreviation such mov for move, mul for
multiplication operation.
14

HIGH-LEVEL LANGUAGE
It was developed to speed up the
programming process.
Use English commands to carry out
instructions.
15

HIGH-LEVEL LANGUAGE
Examples are:
BASIC (Beginner’s All-purpose Symbolic Instruction Code;
COBOL (Common Business Oriented Language;
Pascal; and
FORTRAN (FORmula TRANslation)
It requires another program to translate instruction into
machine codes like Interpreter or a compiler.
✔ Interpreter ✔ Compiler
Translate line by line during Translates the entire program
runtime. before running the program.
16
OBJECT-ORIENTED/EVENT-DRIVEN
PROGRAMMING LANGUAGES
These are programs that run in Windows that requires more
complicated programming capabilities.
Object-oriented Programming (OOP), and

Event-driven programming (EDP) languages.


Create Graphical User Interface (GUI)-based.
Example of OOP are:
Visual Basic, Delpi, Visual C++, PROLOG, and Smalltalk, Word
processing, spreadsheet, slide presentation, and drawing toolkits are
some of the applications developed using event-driven programming
languages.
17

SMALL BASIC
18

THE MICROSOFT SMALL BASIC


ENVIRONMENT
It has four main parts;
• Toolbar
• Editor
• Help window
• Surface
19

Toolbar
It contains tools and
commands you need to
manage your files or programs
and edit your codes or
statements. A statement is
every line of instruction in a
program when you use Small
Basic.
20

Editor
This is where you will write your
Small Basic statements or
programs. The default name is
“Untitled” since the program has
not been saved. Editor
The editor that you are currently
working on is called the active
editor.
21

Help window
It is where you can
find information
about the commands
Help Window
22

Surface
It shows the errors
found in the Help Window
program.
23

IntelliSense
As you type your code or
statement, you will notice that a
pop-up menu will appear on
your editor, this is called
IntelliSence.
Convenient way to access
descriptions of functions.
24

The TextWindow Object


Common operation of TextWindow object are:

The Write operation is used to write a text or a


number. Unlike the WriteLine, this will not append a
new line character, which means, anything written on
the text window will be the same to the output. You
will use Read operation to accept inputs from other
users. Its instructs the computer to wait for the user
to type in something and hit the Enter key.
25

THANK
YOU SO
MUCH!

You might also like