Elements of the Program

6
ELEMENTS OF THE PROGRAM

Transcript of Elements of the Program

Page 1: Elements of the Program

ELEMENTSOF THE PROGRAM

Page 2: Elements of the Program

• computer program

is a program or a sequence of instructions, written to perform a specified task with a computer.

Page 3: Elements of the Program

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.

Page 4: Elements of the Program

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.

Page 5: Elements of the Program

Five Basic Programming Elements

3.Arithmetic

1.Input 2.Output

4.Conditional 5.Looping

Page 6: Elements of the Program

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