Basic Programming Concept


Published on

Meaning of PL, Generations of PL

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Basic Programming Concept

  1. 1.
  2. 3. LA 5 - PROGRAMMING 5.1 Basic Programming Concepts Prepared by: Norhasimah Mohamed, SMK Sungai Pusu, Gombak Selangor. 18032008
  3. 4. Learning Outcomes <ul><li>State the definition of program . </li></ul><ul><li>State the definition of programming language. </li></ul><ul><li>Identify the generations of low-level programming languages with examples. </li></ul><ul><li>Identify the generations of high-level programming languages with examples. </li></ul>
  4. 5. Definition of Program <ul><li>A computer program is a series of organised instructions that directs a computer to perform tasks. </li></ul>
  5. 6. Definition of Programming Language <ul><li>A programming language is a set of words, symbols and codes that enables humans to communicate with computers. </li></ul>
  6. 7. Example of Programming Languages <ul><li>Hundreds of programming languages exist today. Each language has its own standard or rules for writing the commands and/or instructions. </li></ul><ul><li>Examples of programming languages are: </li></ul><ul><ul><li>BASIC (Beginner’s All Purpose Symbolic Instruction Code) </li></ul></ul><ul><ul><li>Pascal </li></ul></ul><ul><ul><li>C </li></ul></ul><ul><ul><li>Smalltalk </li></ul></ul>
  7. 10. Generations of programming languages
  8. 11. Levels of Programming Language
  9. 12. Task <ul><li>Work in group and collect information about generations of programming language. </li></ul><ul><li>First generation of programming language </li></ul><ul><li>Second generation of programming language </li></ul><ul><li>Third generation of programming language </li></ul><ul><li>Fourth generation of programming language </li></ul><ul><li>Fifth generation of programming language </li></ul><ul><li>** Presentation on 01/04/2008 </li></ul><ul><li>must include example and explanation of generations of programming language. </li></ul>
  10. 13. Learning Outcomes <ul><li>5.1.3 Programming Language Approaches </li></ul><ul><li> Define Structured Approach in programming. </li></ul><ul><li> Define object-oriented approach in Programming. </li></ul><ul><li> Differentiate between structured approach and object-oriented approach in programming. </li></ul>01042008
  11. 14. STRUCTURED PROGRAMMING <ul><li>often uses a top-down design model where developers map out the overall program structure into separate subsections from top to bottom. </li></ul><ul><li>In the top-down design model, programs are drawn as rectangles. </li></ul><ul><li>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. </li></ul>
  12. 15. STRUCTURED PROGRAMMING <ul><li>Structured programming is beneficial for organising and coding computer </li></ul><ul><li>programs which employ a hierarchy of modules. This means that control is passed downwards only through the hierarchy. </li></ul><ul><li>Examples of structured programming languages include Ada, Pascal and Fortran. </li></ul>
  13. 16. OBJECT-ORIENTED PROGRAMMING <ul><li>The object-oriented approach refers to a special type of programming approach that combines data with functions to create objects. </li></ul>
  14. 17. OBJECT-ORIENTED PROGRAMMING <ul><li>In an object-oriented program, the object have relationships with one another. </li></ul><ul><li>One of the earliest OOP languages is Smalltalk. Java, Visual Basic and C++ are examples of popular OOP languages. </li></ul>
  15. 18. DIFFERENCE BETWEEN STRUCTURED AND OBJECT ORIENTED PROGRAMMING <ul><li>Structured programming often uses a top-down design model. </li></ul><ul><li>The object-oriented programming approach uses objects. </li></ul>