Download presentation
Presentation is loading. Please wait.
Published byRalf Stewart Modified over 9 years ago
1
CSC425 - Introduction To Computer Programming 1
2
2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over 200 programming languages in the world. Helps we understanding computer. We need programming languages as an alternative to a manual system diadvantages of manual system: s slow s repetitive s incorrect data/information Programming Languages
3
CSC425 - Introduction To Computer Programming 3 2 types : Structured and object - oriented. Programming Approach 1. Structured Programming A methodology in which all program logic is constructed from a combination of three control structures : sequence, selection and repetition (loop) Program logic is description of the step-by step procedures for a module.
4
CSC425 - Introduction To Computer Programming 4 2. Object-oriented programming Packaged the data and procedure into a single unit called an object which can be reused and modified. Object have classes and subclasses. Each class contains the characteristics that are unique to objects of that class. data - called attributes or variables procedure - t he instructions that tell the data what to do - called operations or method.
5
CSC425 - Introduction To Computer Programming 5 Evaluation Of 3GL 4GL 5GL P rogramming Languages Machine Language Assembly Language High-Level Language
6
CSC425 - Introduction To Computer Programming 6 Lowest level of language Represent data and program instructions as 1s and 0s The only language that computer directly understand. (Do not require translator) Not convenient to read and use. First generation language Machine - dependent Machine Language (1940s – 1950s)
7
CSC425 - Introduction To Computer Programming 7 Second generation language Developed to replace 1s and 0s use in machine language. Use mnemonic codes : abbreviations that easy to remember A for Add C for Compare MP for Multiply Requires a translator to translate the assembly program into machine language ( assembler). Difficult to learn Machine-dependent Assembly Language (1950s – 1960s)
8
CSC425 - Introduction To Computer Programming 8 Made easy for programmer to develop and maintain program Machine- independent (can run on may different types of computers) Have 3 categories : third, fourth and fifth generation Written in series of English-like words Must be translated to machine code first. (Use translator) High Level Language
9
CSC425 - Introduction To Computer Programming 9 3rd Generation Language (1960 – 1970) Instruction is written as a series of English-like words. Often are called procedural languages Translation is performed using compiler or translator Example of 3GL programming language: FORTRAN, COBOL and BASIC
10
CSC425 - Introduction To Computer Programming 10 Stands for FORmula TRANslator Develop in the late 1950s by team of IBM Designed for scientific applications Used most often by scientist, engineers and mathematicians. Example coding in FORTRAN FORTRAN FORTRAN
11
CSC425 - Introduction To Computer Programming 11 COBOL Common Business Oriented Language was developed in the early 1960s more widely used used for business applications easy to read, write and maintain BASIC Was develop in the mid - 1960s by John Kemeny and Thomas Kurtz Easy to learn and used Widely used for education and business application.
12
CSC425 - Introduction To Computer Programming 12 Also uses English-like statements Non- procedural languages - only to specify what is to be accomplished without explaining how Coding programs requires less time and effort Example of programming language : PROLOG, FOCUS, LISP and FORTH 4th Generation Language (1970s – 1980s)
13
CSC425 - Introduction To Computer Programming 13 Also called natural language. A type of query language that allows the user to enter requests that resemble human speech. Translate human instructions into code the computer understands. Sometimes referred to as knowledge-based language. 5th Generation Language (1990s)
14
CSC425 - Introduction To Computer Programming 14 Example of Natural language Welcome to Inquiry What would you like to know? Do we have hammer #37645? One moment please.. Yes, we have 14 hammer #37645. Do we have 1 box nails #3601? One moment, please. No nails #3601 in stock.
15
CSC425 - Introduction To Computer Programming 15 Language Program need to translate because computer only understand machine language. Three kind of translator : - Assembler - Compiler - Translator Used in assembly language for translate the language to machine language Translator Assembler
16
CSC425 - Introduction To Computer Programming 16 Translates one program code statement at a time. Immediately displays feedback when it finds error. Use for Basic Source program Data INTERPRETERRESULTS Interpreter
17
CSC425 - Introduction To Computer Programming 17 Translating the source code from its original language into machine code. Converts the entire source program into machine language at one time Use for C and Cobol Source program Data COMPILER RESULTS OBJECT PROGRAM Program Listing Compiler
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.