PROGRAMMING 8.0. 8.1 Introduction To Programming Definition Types Of Programming Languages Programming Language Paradigm Translator 8.1.1 8.1.2 8.1.4.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Introduction to Programming.
Advertisements

2 We need programming languages to communicate with a computer. The two broad classifications of programming languages are: Low-level and High- level.
Overview of Programming Paradigms
Using Algorithms Copyright © 2008 by Helene G. Kershner.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Intro to Programming CST JavaScript. Objectives Define software Identify the different types of software Differentiate the different types of programming.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Prof. B. I. Khodanpur HOD – Dept. of CSE R. V. College of Engineering
ALGORITHMS AND PROGRAMMING LANGUAGES Lecture 5: Algorithms and programming languages Networks and Communication Department 1.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Types of Computer/Programming Languages Machine Language Symbolic Languages There Are Two Types Of Symbolic Languages Low level Language » Low level language.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
1 Chapter-01 Introduction to Computers and C++ Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Overview-An Overview of Visual Basic.NET1 An Overview of Visual Basic.NET.
Introduction to Computer Programming itc-314
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.
/425 Declarative Methods - J. Eisner /425 Declarative Methods Prof. Jason Eisner MWF 3-4pm (sometimes 3-4:15)
An Introduction to Programming with C++ Sixth Edition
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
CSC425 - Introduction To Computer Programming 1. 2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
PROGRAMMING LANGUAGES
Theory of Programming Languages Introduction. What is a Programming Language? John von Neumann (1940’s) –Stored program concept –CPU actions determined.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Introduction 1 (Read Chap. 1) What is Programming? For some given problem: design a solution for it -- identify, organize & store the problem's data --
Computer Programming Languages HOW COMPUTERS WORK èCIRCUITS èBINARY DIGIT èBIT (0 OR 1) èBYTE - 8 BITS èASCII.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
LOW vs. HIGH Level Languages
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
Chapter 1 Getting Acquainted With Computers, Programs, and C++
Overview.ppt Overview-An Overview of Visual Basic.NET An Overview of Visual Basic.NET.
By ILTAF MEHDI 1 COURSE TITLE: FUNDANENTALS OF PROGRAMMING INSTRUCTOR: ILTAF MEHDI.
Introduction to Computer Programming itc-314 Lecture 04.
ICT PROGRAMMING INTRODUCTION. WHAT & WHY PROGRAMMING Programming is a process of developing computer programs Computer program is a set of instructions.
Chapter 1 An Overview of Computers and Programming Languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Welcome to OBJECT ORIENTED PROGRAMMING Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
GROUP 2 NAME :  AZMYLL BIN ARSHAD  (18DNS14F2014)  MARYAM JAMILAH BINTI RAHIM  (18ENS14F2004)  SURAYA BINTI MOHAMAD  (18DNS14F2005)  MUHAMMAD SALEH.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Introduction to Programming in C++ Seventh Edition Chapter 1: An Introduction to Programming.
Computer Language
Why don’t programmers have to program in machine code?
CSCI-235 Micro-Computer Applications
Computer Programming.
LESSON 1 Introduction to Programming Language
Teaching Computing to GCSE
Developing Applications
Teaching Computing to GCSE
ICT Programming Lesson 1:
An Introduction to Programming with C++ Fifth Edition
Algoritmos y Programacion
Presentation transcript:

PROGRAMMING 8.0

8.1 Introduction To Programming Definition Types Of Programming Languages Programming Language Paradigm Translator

Learning outcomes Define programming language Differentiate between Low-level and High- level language. Identify the functions of translators. State paradigms of programming languages

Programming Languages a set of conventions (words, abbreviations and symbols) in which instructions for the machine are written. That tell the computer to perform task. – Just as human beings communicate with each other through the use of languages such as English, Spanish, Hindi, and Chinese, programmers use a variety of programming languages to communicate with the computer 8.1.1

Types of Programming Languages High-level Language Example : FORTRAN, COBOL, C, C++, C# Low-level Language Example Codes : Assembly Language ; MOV, MUL, LOAD, ADD Machine Language ;

Programming Languages Low-level Language – consist of a :- Machine language, and Assembly language. High-level Language

Low-level Prog. Languages : Machine Language  Machine Language Sometimes also referred to machine code or an object code. Instructions is in the form of a machine code (0 s or 1 s ), example : That is the only language the computer directly recognizes. Representing the only way to directly communicate with the computer. Hard to understand (tedious) and it is error-prone language, thus require highly trained programmers.

Low-level Prog. Languages : Assembly Language  Assembly Language Using mnemonics in place of 0s and 1s in the program.  Mnemonics / symbolic instruction codes – alphabetic abbreviations for instructions  Example : LOAD, MOVE, ADD, MUL It is still hard to write (tedious) and it also requires highly trained programmers.

Low-level Prog. Language Machine Language and Assembly Language

Programming Languages Low-level Language – consist of a :- Machine language, and Assembly language. High-level Language – Using an instructions that more closely resemble the English language. examples of High-level programming languages ; FORTRAN, COBOL, C, C++, C#

High-level Prog. Languages  High-level programming language Vast improvement over low-level language (machine and assembly language) allow the programmer to use instructions that more closely resemble the English language. machine independent compared to machine and assembly languages * programs written in a high-level language can be used on many different types of computers.

Differences of Low-level vs High-level Language Low-level Language (Machine and Assembly Language) High-level Language Machine-dependent – runs only on one type of a computer Often machine-independent – can run on many different types of computers and operating systems. Hard to write and to understand, thus requires highly trained programmers. Allow programmers to write an instructions that more closely resembles the English language. Using an assembler (a translator) – to translate an assembly language to a machine code. Using a compiler or an interpreter (a translator) – to translate high-level language into a machine code

The Translator Translator – is a computer program that ; – translates a computer program written in a given programming language into a functionally equivalent program in a different computer languages

The Translator, cont’

Translator for Machine Language ? Case #1 : Do a translator need to translate a code written in machine language into a machine language ? Answer : NO translation needed.

Translator for Assembly Language ? Case #2 : Do a translator need to translate a code written in assembly language into a machine language ? Answer : YES, translator use an Assembler

Translator for High-level Language ? Case #3 : Do a translator need to translate a code written in high-level language into a machine language ? Answer : YES, translator use a Compiler or an Interpreter

Machine Language to Machine Language Assembly Language to Machine Code High-level Language to Machine Code No translator needed (because similar language) need a translator called Assembler need a translator called Compiler 1 or Interpreter 2 Assembler - a program that translates a program written in assembly language into an equivalent program in machine language. 1 Compiler - a program that translates entire instructions written in a high-level language into the equivalent machine language 2 Interpreter – a program that translates the instructions line by line as the program is running.

Programming Language Paradigm Computer languages are categorized according to the approach they use to solve a problem. A paradigm, therefore, is a way in which computer language looks at the problem to be solved

Programming Language Paradigm StructuredObject-oriented Top-down approachBottom-up approach Program is represent as a logical structure Program is written as a collection of objects which communicate with each other. Flow of execution of the programming is dependent on the structure of the program The basic entity is object. Each computation is performed using object only. Can handle up to moderately complete program Can handle very complex programs. Less data security, less code reusabilityMore data security, more reusability Abstraction is less.Abstraction is more

references D. Zak (2011) An Introduction to Programming 6 th Ed. Cengage Learning. DS. Malik (2011) C++ Programming 5 th Ed. Cengage Learning.