Elements of the Program
-
Upload
dodix-tayactac -
Category
Education
-
view
25 -
download
3
Transcript of Elements of the Program
ELEMENTSOF THE PROGRAM
• computer program
is a program or a sequence of instructions, written to perform a specified task with a computer.
A computer requires programs to
function, typically executing the
program's instructions in
a central processor.
The program has
an executable form that the
computer can use directly to
execute the instructions.
The same program in its human-
readable source code form, from
which executable programs are
derived, enables a programmer to
study and develop its algorithms.
A collection of computer programs
and related data is referred to
as the software.
Five Basic Programming Elements
3.Arithmetic
1.Input 2.Output
4.Conditional 5.Looping
1. Input:
getting data and commands into the computer
2. Output:
getting your results out of the computer
3. Arithmetic:
performing mathematical calculations on your data
4. Conditional:
testing to see if a condition is true or false
5. Looping:
cycling through a set of instructions until some
condition is met