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

Introduction To Programming

This document introduces programming and the program life cycle. It discusses that a program is a set of instructions that directs a computer, and a programmer designs programs. The key steps of the program life cycle are identifying the problem, planning the solution with flowcharts or pseudocode, coding the program in a programming language, testing for errors through desk checking, translation, and debugging, and documenting the program. The document also covers different levels of programming languages from machine language to natural language and types of languages as procedural, which executes instructions sequentially, or non-procedural which is event-driven.

Uploaded by

Fahmi Abdulla
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Introduction To Programming

This document introduces programming and the program life cycle. It discusses that a program is a set of instructions that directs a computer, and a programmer designs programs. The key steps of the program life cycle are identifying the problem, planning the solution with flowcharts or pseudocode, coding the program in a programming language, testing for errors through desk checking, translation, and debugging, and documenting the program. The document also covers different levels of programming languages from machine language to natural language and types of languages as procedural, which executes instructions sequentially, or non-procedural which is event-driven.

Uploaded by

Fahmi Abdulla
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

INTRODUCTION TO PROGRAMMING

INTRODUCTION TO PROGRAMMING
PROGRAM is a set of step-by-step instructions that tells or directs the computer what to do.
PROGRAMMER is the person who designs a program.

2/19/2013

PROGRAM LIFE CYCLE


Steps to follow in writing or creating a program: 1. 2. 3. 4. 5.
2/19/2013

Identifying the problem. Planning the solution. Coding the program. Testing the program. Documentation.
3

IDENTIFYING THE PROBLEM

It involves determining the requirement of the program.

2/19/2013

PLANNING THE SOLUTION


TWO WAYS OF PLANNING THE SOLUTION: 1. Draw a flowchart. 2. Write a pseudo code.

2/19/2013

PLANNING THE SOLUTION


FLOWCHART is a graphical representation of the step-by-step instruction to be done in a program. PSEUDO CODE is listing down the set of instructions to be used in the program.

2/19/2013

CODING THE PROGRAM


After designing the program, next step is to code the program with the use of any chosen programming language. SYNTAX is a set of rules to follow. SYNTAX ERROR is the violation of the rule set by programming language used in a certain program that produce an error. MISSPELLING is one of the common causes of syntax error.
2/19/2013

TESTING THE PROGRAM


After coding the program, it is important to test if it is running. Three phases of testing the program: 1. Desk checking 2. Translation 3. Debugging
2/19/2013

TESTING THE PROGRAM


DESK CHECKING the programmer mentally traces or checks the logic of the program to make sure that it is error free. TRANSLATION the programming language uses a translator to ensure that the programmer did not violate any language rules by the chosen programming language. It translates the program line by line to locate any syntax error.
2/19/2013

TESTING THE PROGRAM

DEBUGGING it means detecting, locating and correcting bugs. BUGS means error or mistakes.
2/19/2013

10

DOCUMENTATION
In this step, the programmer makes a detailed description on how the program was created. It contains a brief narrative process undergone by the program, from identification of the problem up to testing of the results.

2/19/2013

11

LEVELS OF PROGRAMMING LANGUAGE

LEVELS OF PROGRAMMING LANGUAGE


There are five levels of programming languages that are being used in their respective generation: 1. Machine Language (1st Generation) 2. Assembly Language (2nd Generation) 3. High Level Language (3rd Generation) 4. Very High Level Language (4th Generation) 5. Natural Language
2/19/2013

13

MACHINE LANGUAGE
It is considered as the lowest level of programming language. It is represented by 0 and 1.

2/19/2013

14

ASSEMBLY LANGUAGE
It is considered as the low level language. It uses Mnemonic codes instead of 0 and 1. Mnemonic codes are abbreviations that are easy to remember.

2/19/2013

15

HIGH LEVEL LANGUAGE


This language transformed programming in the early 1960s. It makes the language easier by means of the language is written in English. The Translator convert the program into a machine language.
2/19/2013

16

VERY HIGH LEVEL LANGUAGE


This generation simplifies the 3rd generation language. It reduces the number of instructional statements. 100 lines of instructions in 3GLs can be reduced to 5 20 lines of instructions in 4GLs.
2/19/2013

17

NATURAL LANGUAGE
This generation is the resemblance to the English language. It has the capability to translate human instructions into code that a computer understands.

2/19/2013

18

PROCEDURAL AND NONPROCEDURAL LANGUAGES

PROCEDURAL LANGUAGES

PROCEDURAL LANGUAGES
It is a programming languages that uses a series of instructions or statements which are sequential from the beginning to the end. The execution of instruction is line by line and it is terminated after the last instructions.
2/19/2013

21

PROCEDURAL LANGUAGES
Some of the Procedural Languages are:

BASIC (Beginners All-Purpose Symbolic Instruction Code) COBOL (Common Business Oriented Language) FORTRAN (Formula Translator) PL1 (Programming Language 1) Pascal C
2/19/2013

22

NONPROCEDURAL LANGUAGES

NON-PROCEDURAL LANGUAGES
These programming languages are considered as Object-oriented Programming Languages. It is an event-driven program. The statements are not executed per line instead a series of instructions are executed as a whole when an event occurs.
2/19/2013

24

NON-PROCEDURAL LANGUAGES
Example of events are: click, double click, drag and drop, etc. Some of the Non-Procedural Languages are: Visual Basic C++ Java Delphi
2/19/2013

25

VALUES?

2/19/2013

26

AWARENESS DISCIPLINE VALUE OF DECISION MAKING

2/19/2013

27

If its a good idea, go ahead and do it. It is much easier to apologize than it is to get permission.
- Grace Murray Hopper Creator of COBOL

2/19/2013

28

END OF THE DISCUSSION

2/19/2013

29

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy