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

1. Introduction 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)
4 views

1. Introduction to Programming

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

1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1-2 mistakes= 1 pt deduction
3-5 mistakes= 2 pts
6-8 mistakes= 4 pts
9 above= 5 pts
An algorithm is a set of steps that can be
followed from start to finish to complete a task.
In an algorithm, a complicated action is broken
into many small steps.

Computer programmers write algorithms for


each
task a computer needs to do. Then they
translate the algorithms into a language that a
computer can read and follow. This language is
called computer code.
Computer programmers use loops to shorten
the codes that they write.
A loop is a group of actions that is repeated a
given number of times.

For example, take the following code:


↓• ↓ • ↓ • ↓ • ↓ • ↓ • ↓ • ↓ • ↓ • ↓ • ↓ • ↓ •
This code can be shortened to Repeat 12 times: ↓•
Introduction
to
Programmin
g
What is Computer Programming?
• Programming is the art and science of
creating computer programs.
• It is a problem solving activity that
involves planning and designing
solutions for a particular problem and
then writing the solution in code using
programming language.
What is a program?
• It is a set of instructions for the computer to
follow.
• Programs are designed to perform specific
tasks.
• These programs are written by programmers –
individuals who write and debugged computer
programs
• Programming requires more than just the
knowledge of a programming language it also
requires time
Terms in Programming
• Debug
- This refers to the process of correcting the
mistakes in a program.
• HTML
- One of the most popular programming
languages
• Syntax
- The proper arrangement of operators,
symbols and codes.
Terms in Programming
• Tags
- This refers to letters & words that represent
an action.
• Notepad
- Software used in creating HTML program
• Links
- This refers to letters, numbers, words that
once activated it will direct the user to
another web page or web site
Terms in Programming
• Web page
- This refers to the screen that appears everytime
you click any link in the internet.
• Home Page
- This refers to the first screen that appears
everytime you open a web site
• Website
- This refers to the location of the link.
- It always begins with http://www
Applications
of Computer
Languages
Applications of Computer Languages
1.Scientific Applications
- Characterized as applications that are mostly
used for manipulating number and arrays of
numbers using mathematical and statistical
principles.
- These applications are usually used to provide
solutions for scientific problems.
- It is generally make use of arithmetic
calculations and operations and extensively
uses the central processor for its operations
Applications of Computer Languages
2. Data Processing Applications
- Characterized as applications created to provide
solutions to programming problems with the
interest of creating manipulating, maintaining,
extracting and summarizing data in records and
files.
- This is usually used by organizations for
management support, payroll, accounting, billing,
production and sales.
- This is usually used in updating, locating and
Applications of Computer Languages
3. Text Processing
- Characterized as applications concerned with
the manipulation of text or words rather than
numbers.
- These applications are usually used to create
documents, letters, manuscript, memos and the
like.
- Common applications used for this type of
application are word processors like, MS Word,
Word star, notepad and the like.
Applications of Computer Languages
4. Artificial Intelligence
• characterized as those programs designed
principally to follow applications intelligent
behaviour.
• These applications are usually used to create
programs that enable computer to think using such
aspects of intelligence as recognition, deduction,
creative response and the ability to learn from the
past experience.
• Some programs created using these applications are
games such as chess, speech recognition, language
Applications of Computer Languages
4. System Programming
• These applications are programs that are
used to access or interface the computer
system or hardware with the programmer
and the operator.
• These programs are used to utilize the
various resources of a computer system.
Included in this program are compilers,
assemblers, and interpreters.
What do students need to know
before learning coding?
• Basic computer skills: Students will need
to know or learn fundamental skills for using
a device, including clicking, typing, logging
in and out, etc.
• Logic: Coding challenges students to
identify cause and effect, sequence, make
inferences, and perform other cognitive
skills.
• Perseverance: Coding requires
students to experiment and use trial
and error to figure out which
commands, syntax, and sequencing
will lead to the outcome(s) they
desire. This requires a certain level of
stick-to-itiveness that can be
challenging for learners of all ages.
• Attention to detail:
Sometimes the smallest of details can
cause coding syntax to error out or to
not function as desired. Students will
need to apply or learn mindfulness
and patience when reading and
writing their code.
Evaluation

1. What are the different


programming languages and
where do we see it?
Evaluation

2. Do you think programming


affects our daily activities? How
about in our lives?

You might also like