Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
10 views

Lesson 2 - Intro to Programming

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

Lesson 2 - Intro to Programming

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, 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
Whatis 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.
Scenari
o:
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 Drive straight south along National
1: Highway. Turn right to JP Teves Street.
Step Keep driving straight.
2: If you reach the Police Station, turn right.
Step Drive 300 meters straight to reach Asian College
3:
Step
4: The above sequence of instruction is
Step
like a human program, written in
5: English language.
the 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
Step twoEnter
numbers.
a number. (Num1).
1: Type “+” for addition, type “-” for
Step subtraction, type “*” for multiplication, and
2:
Step “/” for division.
3: Enter another number (Num2).
Step If “+”, perform (Num1+Num2), else if “-”,
4: perform (Num1-Num2), else if “*”, perform
(Num1*Num2), else if “/”, perform
Step (Num1/Num2), else, display
5: an error
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
1. JavaScri
languages:
pt
2. Python
3. Java
4. PHP
5. C#
6. C++
7. TypeScrip
t
8. Shell
9. C
Computer programs can
be categorized to two types:

• Application
programs
• System programs
Application
Programs
Usually called “applications”
just
“apps”, programs are
programs
applicationthat people or to execute
theuse
their in the computer.
work includ
This
document processors, es
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
Questions?
Comments?
Share it with the
class.
Assignmen
t
What are the computer programs you
are using, and how does it impact you as
a student?
That’s all for
Thank
today!you.
Keep safe.
God bless.

You might also like