+ All Categories
Home > Technology > La 5 Programming1

La 5 Programming1

Date post: 29-Nov-2014
Category:
Upload: shimamohd
View: 3,611 times
Download: 7 times
Share this document with a friend
Description:
 
22
http://www.youtube.com/watch?v=AGPhXrc78Jg
Transcript
Page 1: La 5   Programming1

http://www.youtube.com/watch?v=AGPhXrc78Jg

Page 2: La 5   Programming1
Page 3: La 5   Programming1

LA 5 - PROGRAMMING

5.1 Basic Programming Concepts

Prepared by: Norhasimah Mohamed, SMK Sungai Pusu, Gombak Selangor. 18032008

Page 4: La 5   Programming1

Learning Outcomes

1. State the definition of program.

2. State the definition of programming language.

3. Identify the generations of low-level programming languages with examples.

4. Identify the generations of high-level programming languages with examples.

Page 5: La 5   Programming1

Definition of Program

• A computer program is a series of organised instructions that directs a computer to perform tasks.

Page 6: La 5   Programming1

Definition of Programming Language

• A programming language is a set of words, symbols and codes that enables humans to communicate with computers.

Page 7: La 5   Programming1

Example of Programming Languages

• Hundreds of programming languages exist today. Each language has its own standard or rules for writing the commands and/or instructions.

• Examples of programming languages are:– BASIC (Beginner’s All Purpose Symbolic Instruction

Code)– Pascal– C– Smalltalk

Page 8: La 5   Programming1
Page 9: La 5   Programming1
Page 10: La 5   Programming1

Generations of programming languages

Page 11: La 5   Programming1

Levels of Programming Language

Page 12: La 5   Programming1

TaskWork in group and collect information about

generations of programming language.

1. First generation of programming language2. Second generation of programming language3. Third generation of programming language4. Fourth generation of programming language5. Fifth generation of programming language

** Presentation on 01/04/2008• must include example and explanation of generations of programming

language.

Page 13: La 5   Programming1

Learning Outcomes

5.1.3 Programming Language Approaches

• 5.1.3.1 Define Structured Approach in programming.

• 5.1.3.2 Define object-oriented approach in Programming.

• 5.1.3.3 Differentiate between structured approach and object-oriented approach in programming.

01042008

Page 14: La 5   Programming1

STRUCTURED PROGRAMMING

• often uses a top-down design model where developers map out the overall program structure into separate subsections from top to bottom.

• In the top-down design model, programs are drawn as rectangles.

• A top-down design means that the whole program is broken down into smaller sections that are known as modules.

• A program may have a module or several modules.

Page 15: La 5   Programming1

STRUCTURED PROGRAMMING

• Structured programming is beneficial for organising and coding computer programs which employ a hierarchy of modules. This means that control is passed downwards only through the hierarchy.

• Examples of structured programming languages include Ada, Pascal and Fortran.

Page 16: La 5   Programming1

OBJECT-ORIENTED PROGRAMMING

• The object-oriented approach refers to a special type of programming approach that combines data with functions to create objects.

Page 17: La 5   Programming1

OBJECT-ORIENTED PROGRAMMING

• In an object-oriented program, the object have relationships with one another.

• One of the earliest OOP languages is Smalltalk. Java, Visual Basic and C++ are examples of popular OOP languages.

Page 18: La 5   Programming1

DIFFERENCE BETWEEN STRUCTURED AND OBJECT ORIENTED PROGRAMMING

• Structured programming often uses a top-down design model.

• The object-oriented programming approach uses objects.

Page 19: La 5   Programming1

QUIZ

“A series of organised instructions that directs a computer to perform tasks.”

• Above statement refers to definition of _______________.Computer program/ Program

Page 20: La 5   Programming1

QUIZ

“A set of words, symbols and codes that enables humans to communicate with

computers.”

• Above statement refers to definition of ___________________.Programming Language

Page 21: La 5   Programming1

Generations of programming languages

1st generation : eg:_________________

2nd generation : eg:_________________

3rd generation : eg:_________________

4rd generation : eg:_________________

5th generation : eg:_________________Prolog, Mercury

Assembly Language

COBOL, Pascal, C++

SQL

Machine Language

Page 22: La 5   Programming1

DIFFERENCE BETWEEN STRUCTURED AND OBJECT ORIENTED PROGRAMMING

• Structured programming

• Object-oriented programming

1. Used top down design model

2. Example : ADA, Pascal, Fotran

1. Used a objects2. special type of programming

approach that combines data with functions to create objects

3. Example : C++, Visual Basic


Recommended