Computer programming.

Slides:



Advertisements
Similar presentations
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Advertisements

Three types of computer languages
Java Environment (CSS444)
 2003 Prentice Hall, Inc. All rights reserved. 1 Machine Languages, Assembly Languages, and High-level Languages Three types of computer languages 1.Machine.
 2002 Prentice Hall. All rights reserved. Week 1 - Introduction to Object- Oriented Programming Outline 1.1 Machine Languages, Assembly Languages and.
August 29, 2005ICP: Chapter 0: Introduction to Computers and Computing 1 Introduction or Computer Programming Chapter 0: Introduction to Computers and.
Software Development CS 1 Rick Graziani Spring 2007.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Programming languages Zuzana Brťková. What is programming language? A programming language is an artificial language designed to communicate instructions.
COMPUTER SCIENCE I C++ INTRODUCTION
1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Evolution.
BIT Presentation 6. Contents GENERATIONS OF LANGUAGES COMPILERS AND INTERPRETERS VIRTUAL MACHINES OBJECT-ORIENTED PROGRAMMING SCRIPTING LANGUAGES.
Introduction to Computer Programming itc-314
Programming Languages
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
By: Felegh Solomon ITEC SPRING 2013 CHAPTER 4: KEY CONSTRUCTION DECISIONS.
 2008 Pearson Education, Inc. All rights reserved. 1 The chief merit of language is clearness. — Galen Our life is frittered away by detail…. Simplify,
Lecture 1: Introduction to Computers. OBJECTIVES In this lecture you will learn:  Basic computer concepts.  The different types of programming languages.
Chapter Lead Black Slide Powered by DeSiaMore Powered by DeSiaMore.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Programming Languages
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Programming Languages – Primary Uses. FORTRAN, LISP, COBOL Supercomputing applications AI development Business software Fun Fact: The Terminator.
Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.
COMPUTER PROGRAMS AND LANGUAGES Chapter 4. Developing a computer program Programs are a set (series) of instructions Programmers determine The instructions.
Programming: A Brief History. Introduction Five Generations of Programming Languages Gets closer to representing data in human terms Requires additional.
COMPUTER PROGRAMMING I SUMMER 2011 Programming Languages.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 1 – Car Payment Calculator and Guess the Number.
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
The Teacher Computing Computer Languages [Computing]
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
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.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
A language which is acceptable to a computer system is called a computer language or programming language and the process of writing instructions in such.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
CS2301:Computer Programming 2
FORTRAN History. FORTRAN - Interesting Facts n FORTRAN is the oldest Language actively in use today. n FORTRAN is still used for new software development.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
CS1110: Computer Science I Chapter 1. What Is a Computer? A computer is a device capable of performing computations and making logical decisions At a.
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
Introduction to Computer Programming itc-314 Lecture 04.
PROGRAMMING VOCABULARY. The Words ◦ FORTRAN ◦ COBOL ◦ PASCAL ◦ BASIC ◦ C ◦ Java ◦ Flash ◦ PERL ◦ Ruby ◦ Python.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
CSC141 Introduction to Computer Programming Programming Language.
Computer Languages [Computing] Computing.
Introduction to Programming / chapter 1&2 / COM1022
Chapter 1 – Introduction to Computers, the Internet, and the Web
Programming Languages
CSCI-235 Micro-Computer Applications
LESSON 1 Introduction to Programming Language
Computer System and Programming
Developing Applications
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
What is Programming?.
Presentation transcript:

Computer programming

Computer programming Quick review…..

Types of programming languages Machine language Only language computer directly understands “Natural language” of computer Defined by hardware design Machine-dependent Generally consist of strings of numbers Ultimately 0s and 1s Instruct computers to perform elementary operations One at a time Cumbersome for humans Example: +1300042774 +1400593419 +1200274027

Types of programming languages Assembly language English-like abbreviations representing elementary computer operations Clearer to humans Incomprehensible to computers Translator programs (assemblers) Convert to machine language Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY

Types of programming languages High-level languages Similar to everyday English, use common mathematical notations Single statements accomplish substantial tasks Assembly language requires many instructions to accomplish simple tasks Translator programs (compilers) Convert to machine language Interpreter programs Directly execute high-level language programs Example: grossPay = basePay + overTimePay

What are Interpreters, compilers and assemblers? it converts each high level instruction into a series of machine instructions and then immediately run (or execute) those instructions. Compilers: convert a finished program (or section of a program) into object code. This is often done in steps. Assemblers: program which convert the symbolic instructions ( which is written in an assembly language) into object or machine code.

size of programs Programs are generally divided into three basic sizes: trivial, small, and large. Trivial programs are programs that a skilled programmer can write in less than two days of coding. Small programs are programs that one skilled programmer can write in less than one year of full time work.

Con. Size of programs Large programs are programs that require more than two to five man-years of labour, normally written by programming teams (which can exceed 1,000 skilled workers).

Nice stories Larry Ellison wrote the first version of Oracle database by himself in about six months. That is a genius exception. Data bases typically take large teams (sometimes hundreds of programmers) at least a year. Another story Bill Gates, copying and pasting from the source code of three working open source versions, took more than six months to create a bug-filled BASIC compiler and then hired a team of six skilled programmers who spent more than six more months to get rid of enough bugs to make the compiler somewhat usable (a total of more than three man-years).

That is an exception. A BASIC compiler typically takes a skilled programmer a few hours to create. Note that Bill Gates takes credit for quickly having created a BASIC compiler, but according to other sources he was sued for having illegally used open source code for commercial purposes, forcing him to spend a great deal of time attempting to do a project that many programmers of the day could successfully finish in hours.

History of programming languages There have been thousands of programming languages, many of which have been lost to history. FORTRAN (FORmula TRANslation) was created in 1954 by John Backus and other researchers at International Business Machines (now IBM). Released in 1957. FORTRAN is the oldest programming language still in common use. FORTRAN was the first high-level language, using the first compiler ever developed.

Cont. History Prior to Fortran, programmers were required to program using machine / assembly languages. Significant features of the language are listed below:” Simple to learn. Machine Independent ( easy transportation). Efficient execution. Ability to control storage allocation (considered today as a dangerous practice)

Cont. History LISP LISP (LISt Processing) was created n 1958. released in 1960 by John McCarthy of MIT. the second oldest programming language still in common use. was intended for writing artificial intelligence programs.

Cont. History COBOL COBOL (COmmon Business Oriented Language) was created in May 1959 by the Short Range Committee of the U.S. Department of Defense (DoD). Numbers of versions. The last one in 2002. 1997 and 2002 were Object Oriented versions.

Cont. History BASIC BASIC (Beginner’s All-purpose Symbolic Instruction Code) was designed as a teaching language in1963 by John George and Thomas Eugene Kurtz of Dartmouth College. BASIC was intended to make it easy to learn programming. The first BASIC program was run at 4 a.m. May 1, 1964.

Cont. History Pascal Pascal (named for French religious fanatic and mathematician Blaise Pascal) was created in 1970 by Niklaus Wirth. Work started in 1968. Pascla intended as a teaching language to replace BASIC.

Cont. History C C was developed from 1969-1972 by Dennis Ritchie. Was developed for use in systems programming for UNIX. SQL SQL (Standard Query Language) was designed by Donald D. Chamberlin and Raymond F. Designed by IBM in 1974.

Cont. History Ada Ada was first released in 1983 (ADA 83), other releases in 1995 (ADA 95) and 2005 (ADA 2005). Ada was created by the U.S. Department of Defence (DoD). originally intended for embedded systems and later intended for all military computing purposes. C++ c++ was developed in 1983 by Bjarne Stroustrup at Bell Telephone Laboratories. to extend C for object oriented programming.

Cont. History Java Java (named for coffee). was created by James Gosling and others at Sun Microsystems for embedded systems. released for applets in 1995. Original work started in 1991 as an interactive language under the name Oak. Rewritten for the internet in 1994.

Cont. History JavaScript JavaScript (originally called LiveScript). was created by Brendan Elch at Netscape in 1995. A scripting language for web pages. PHP PHP (PHP Hypertext Processor) was created by Rasmus Lerdorf in 1995. C# C# was created by Anders Hajlsberg. The main language of Microsoft’s .NET.