IT 103 Presentation 1 Lesson1
IT 103 Presentation 1 Lesson1
IT 103 Presentation 1 Lesson1
Concepts
Lesson 1 in IT 103
What is a program?
O Program –is a set of instructions
that the computer executes. A
program is a set of instructions
loaded in the CPU that the CPU
executes to achieve an outcome).
What is Programming?
O Programming-is instructing the
computer by means of a
programming language to perform
certain tasks for your desired output.
What is Programming Language?
O Programming language- is a
language which the computer
understands. It is just like any other
language with its own syntax and
constructs. The programmer uses it
to make the computer follow his/her
instructions.
Programming Languages
O are designed to communicate
instructions to a computer. It is used to
write or create computer programs that
control the behavior of a machine.
O Machine Language – It is the native tongue of the
computer that represents data and program instructions
as binary digits corresponding to the on and off electrical
states in the computer or binary string of 0’s and 1’s that
specifies an operation.
O Low Level Language – provides little or no abstraction
between the language and machine language. A low level
language does not need a compiler or interpreter to run;
the processor for which the language was written is able
to run the code without using either of these.
O High Level Language - enables the common
programmer to write Compiler - translates
a computer programs
programs using
written in
instructions that resembles a particular
everyday language
language. It is into
also
a machine
called compiler language, sincelanguage.
these languages require a
special program called a compiler.
High Level Language
OSource program – the original
program that is written in a high-level
language.
OObject program – the original
programs translation in machine
language.
O Assembly Language – this is a type of low-level
programming language. It can be an alternative to
machine language but it uses mnemonic codes or
abbreviations that are easy to remember. An
assembly language might be used instead of high-
level language for any of these three major reasons:
speed, control, and preference. Program written in
assembly language run faster than those generated
by a compiler. The programmer must use an
assembler to translate the assembly language into
machine code
Examples of Programming Languages
O Ada O C#
O BASIC O Java
O FORTRAN O JavaScript
O COBOL O Python
O Pascal O Ruby
O C and C++ O Visual
Basic/VB.Net
Core Hardware Components to
Run a Program
The two major components to execute a
program are:
ALGORITHM
To write a logical step-by-step method to solve the
problem is called algorithm, in other words, an
algorithm is a procedure for solving problems. In order
to solve a mathematical or computer problem, this is
the first step of the procedure. An algorithm includes
calculations, reasoning and data processing.
Algorithms can be presented by natural languages,
pseudo code and flowcharts, etc.
Tools for Creating a Program
FLOWCHART
Flowchart is the graphical or pictorial
representation of an algorithm with the help of
different symbols, shapes and arrows in order to
demonstrate a process or a program. With
algorithms, we can easily understand a program.
The main purpose of a flowchart is to analyze
different processes. Several standard graphics are
applied in a flowchart.
TYPES OF FLOWCHART
O Start/End Symbol
O Decision Symbol
O Input/Output Symbol
O Preparation Symbol
O Connector Symbol
O Off Page
O Flowlines