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

Lesson 2 - Intro to Programming

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

Lesson 2 - Intro to Programming

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

INTRODUCTION

TO
PROGRAMMING
Today, we’ll talk about..
• Introduction to Computer Programming
• What is Computer Programming?
• Programming Languages
• Types of Computer Programs
• Uses of Computer Programs
What is Computer Programming?
Let us understand first, what is a computer
program.

A computer program is a sequence of


instructions that guides a computer to perform
the task you want it to do and deliver the
expected outcome.
A computer program can be compared to
an instruction given to a person to perform a
certain task.
Scenario:

Someone asks you about how to go to


Asian College Dumaguete from the City
Mall Dumaguete. How are you going to instruct
him/her?
Using human language to
give the instruction, it could be
something as follows:

“First, drive straight south along the


National Highway until you reach NORSU.
Turn right to JP Teves Street. Keep driving
straight ahead until you reach the Police
Station. Turn right and drive 300 meters
straight to Asian College.”
Step 1: Drive straight south along National Highway.
Step 2: Turn right to JP Teves Street.
Step 3: Keep driving straight.
Step 4: If you reach the Police Station, turn right.
Step 5: Drive 300 meters straight to reach Asian College

The above sequence of instruction is like a human


program, written in the English language. The same
concept is applied in understanding how the computer program
is executed by the computer in performing a task.
By definition..

Computer programming is the process of


designing sequences of instructions that guides
a computer to perform a task and produce a
specific computing result.
Example of a simple computer program
A simple program that will perform basic
mathematical operation of two numbers.
Step 1: Enter a number. (Num1).
Step 2: Type “+” for addition, type “-” for subtraction, type
“*” for multiplication, and “/” for division.
Step 3: Enter another number (Num2).
Step 4: If “+”, perform (Num1+Num2), else if “-”, perform
(Num1-Num2), else if “*”, perform (Num1*Num2),
else if “/”, perform (Num1/Num2), else, display
an error message.
Step 5: Display result.
Expressing the instruction in
creating a program to the computer
is through the use of a programming
language.

A programming language is a set of


rules that guides the computer what
operations to execute.
These are the most widely-used
programming languages:
1. JavaScript
2. Python
3. Java
4. PHP
5. C#
6. C++
7. TypeScript
8. Shell
9. C
10. Ruby
Computer programs can be
categorized to two types:

• Application programs
• System programs
Application Programs

Usually called just “applications” or


“apps”, application programs are the
programs that people use to execute their
work in the computer. This includes
document processors, spreadsheets,
games, database systems, web browsers,
e-mail clients, media players, and many
more.
Examples of Application Programs

Word Processors, Presentations, Spreadsheets & Readers

Web Browser

Games
E-mail Clients Media Players
System Programs

System programs are programs that keep


the hardware and software running on a
computer. This includes operating systems,
programming language translators, device
drivers, firmware, etc.
Examples of System Programs

Operating Systems

Device Drivers

Programming Language
Translators
Uses of Computer Programs

The computer program has greatly


transformed the efficiency in performing tasks. It
allows the automation of traditional tasks that
requires a lot of work hours and energy.
Here are some of the applications
of computer programs:
• Media development software for producing print and electronic media for
educational and industrial settings. This includes graphics, word processing,
publications, videos, and animation.
• Enterprise applications for resource planning, customer service, and
supply management.
• Enterprise infrastructure software like databases, web servers, network
servers, and email servers.
• Product engineering software for supporting large machine and
application software development. Examples include integrated development
environments (IDE), computer-aided engineering (CAE), and computer-aided
design (CAD).
• Entertainment Software like music and video players, video games, etc.
Questions?
Comments?
Share it with the class.
Assignment

What are the computer programs you are


using, and how does it impact you as a
student?
That’s all for today!
Thank you.
Keep safe.
God bless.

You might also like