Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.

Slides:



Advertisements
Similar presentations
Programming Languages Marjan Sirjani 2 2. Language Design Issues Design to Run efficiently : early languages Easy to write correctly : new languages.
Advertisements

Overview of Programming Paradigms
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ 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.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Chapter 1 Introduction to Programming. Computer Hardware CPU Memory –Main or primary –Secondary or auxiliary Input device(s) Output device(s)
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.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
1 Intro to Computer Science I Chapter 1 Introduction to Computation Algorithms, Processors, and Programs.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
BIT 1003 – Presentation 7. Contents GENERATIONS OF LANGUAGES COMPILERS AND INTERPRETERS VIRTUAL MACHINES OBJECT-ORIENTED PROGRAMMING SCRIPTING LANGUAGES.
Assemblers.
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.
Evolution of Programming Languages Generations of PLs.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
Programming Languages: History & Traditional Concepts CSC 2001.
Chapter 6 Programming Languages. © 2005 Pearson Addison-Wesley. All rights reserved 6-2 Chapter 6: Programming Languages 6.1 Historical Perspective 6.2.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Chapter 6 Programming Languages © 2007 Pearson Addison-Wesley. All rights reserved.
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.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
5-1 Chapter 5 - Languages and the Machine Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
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.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
CS-303 Introduction to Programming
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Computer Organization Instructions Language of The Computer (MIPS) 2.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Chapter 1 An Overview of Computers and Programming Languages.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
GROUP 2 NAME :  AZMYLL BIN ARSHAD  (18DNS14F2014)  MARYAM JAMILAH BINTI RAHIM  (18ENS14F2004)  SURAYA BINTI MOHAMAD  (18DNS14F2005)  MUHAMMAD SALEH.
Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
A LECTURE NOTE. Introduction to Programming languages.
Component 1.6.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Ch. 7 Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
Computer science By/ Midhat Mohiey. Introduction to Programming using C ++ 2.
Translators & Facilities of Languages
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
CSCE Fall 2013 Prof. Jennifer L. Welch.
Chapter 6: Programming Languages
Low Level Programming Languages
CSCE Fall 2012 Prof. Jennifer L. Welch.
Introduction to Computer Programming
Chapter 6 Programming the basic computer
Computer Programming (CS101) Lecture-02
Algoritmos y Programacion
Presentation transcript:

Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE

 Machine language is Numeric  Machine code or machine language is a set of instructions executed directly by a computer's central processing unit (CPU).  Each instruction performs a very specific task, such as a load, a jump, or an ALU operation on a unit of data in a CPU register or memory.  Every program directly executed by a CPU is made up of a series of such instructions

 An assembly language is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions.

 Assembly language uses a mnemonic to represent each low- level machine instruction or operation.  Before it can be executed on a computer, it needs to be converted into machine language.  An assembler is a program that creates object code by translating combinations of mnemonics and syntax for operations and addressing modes into their numerical equivalents.

 A programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer.  Such languages are considered high-level because they are closer to human languages and further from machine languages.  To execute a high language, it must be converted into a machine language using a compiler.

 1 st Generation ◦ Machine Language  2 nd Generation ◦ Assembly Language  3 rd Generation ◦ High level language such as Java, Ruby

 Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable computer programs.  To “program” is to construct a program that will execute on a computer.  A program is a collection of statement of 3 types: ◦ Declarative: e.g. names used to reference data ◦ Imperative: steps of the algorithm ◦ Comments: help explain the program

 Variables and data types  Assignment and statements  Control structures  Comments  Procedures  Functions

 Variable (computer science), a symbolic name associated with a value and whose associated value may be changed.  Variable types include int, float, double, char etc  Int age=45;

 The steps of the algorithm are described in the programming language using imperative statements.  One form of these is the assignment statement.

 The steps of the algorithm are described in the programming language using imperative statements.  One form of these is the assignment statement.

 They alter the execution path through the program. There are three types:

 Comments can be incorporated within a program.  They are means of explaining to someone reading or modifying the program what they program is all about.  Comments need to be meaningful.

 Comments can be incorporated within a program.  They are means of explaining to someone reading or modifying the program what they program is all about.  Comments need to be meaningful.

 Procedures are a means of organizing program codes into units that can be reused  Procedures do things, functions later returns things Int calc (int x, int y) Int sum=x + y; } Return sum;

 Procedures are a means of organizing program codes into units that can be reused  Procedures do things, functions later returns things Int calc (int x, int y) Int sum=x + y; } Return sum;