Objective: To learn meaning and concepts of programming. Outcome: By the end of this students should be able to describe the meaning of programming

Similar documents
1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development

Concepts in Programming Languages

Programming Languages, Summary CSC419; Odelia Schwartz

Chapter 11 Program Development and Programming Languages

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)

Chapter Twelve. Systems Design and Development

Discovering Computers 2008

Discovering Computers Chapter 13 Programming Languages and Program Development

Technology in Action. Chapter Topics. Scope creep occurs when: 3/20/2013. Information Systems include all EXCEPT the following:

Concepts of Programming Languages

Low-Level Languages. Computer Programs and Programming Languages

Programming Languages 2nd edition Tucker and Noonan"

Principles of Programming Languages. Lecture Outline

Principles in Programming: Orientation & Lecture 1. SWE2004: Principles in Programming Spring 2014 Euiseong Seo

Language Translation, History. CS152. Chris Pollett. Sep. 3, 2008.

Chapter 1. Preliminaries

Programming Languages and Program Development Life Cycle Fall Introduction to Information and Communication Technologies CSD 102

Lecture 09. Ada to Software Engineering. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Topic I. Introduction and motivation References: Chapter 1 of Concepts in programming languages by J. C. Mitchell. CUP, 2003.

What is a programming language?

Technology in Action. Chapter Topics (cont.) Chapter Topics. Reasons for Software Programming. Information Systems 10/29/2010

General Concepts. Abstraction Computational Paradigms Implementation Application Domains Influence on Success Influences on Design

CS101 Introduction to Programming Languages and Compilers

Chapter 1 Preliminaries

Why study Programming Language Concepts? Chapter One. Language Evaluation Criteria. Programming Domains. Readability Writability Reliability Cost

Lecture 01 & 02 Computer Programming

COMP 201: Principles of Programming

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Tenth Edition. Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall

Chapter 1. Preliminaries

INFS 214: Introduction to Computing

Com S 541. Programming Languages I

Chapter 1. Preview. Reason for Studying OPL. Language Evaluation Criteria. Programming Domains

COMP-421 Compiler Design. Presented by Dr Ioanna Dionysiou

Information Systems Software

Read & Download (PDF Kindle) A First Book Of C++ (Introduction To Programming)

Continuations provide a novel way to suspend and reexecute

Introduction. A. Bellaachia Page: 1

Programming the World Wide Web by Robert W. Sebesta

Programming Languages and Program Development

Principles in Programming: Orientation & Lecture 1. SWE2004: Principles in Programming Spring 2015 Euiseong Seo

Why are there so many programming languages? Why do we have programming languages? What is a language for? What makes a language successful?

Chapter 2. Pseudocodes: Speedcoding. 2.2 Minimal Hardware Programming: Pseudocodes. Evolution of the Major Programming Languages

Component V Supporting Materials / Learn More Interesting Facts. Interesting Facts

CSCI 3136 Principles of Programming Languages

Introduction to Programming

1/14/2014. Introduction to CSE 1325 Object Oriented Programming (Using Java) Introduction (Cont.) Introduction

Chapter 2. Evolution of the Major Programming Languages

Compilers Project Proposals

Copyright 2005 Department of Computer & Information Science

But before understanding the Selenium WebDriver concept, we need to know about the Selenium first.

Early computers (1940s) cost millions of dollars and were programmed in machine language. less error-prone method needed

CS2303 C14 Systems Programming Concepts. Bob Kinicki

Which of the following is not true of FORTRAN?

Organization of Programming Languages (CSE452) Why are there so many programming languages? What makes a language successful?

Introduction to Programming

Outline. Introduction to Programming (in C++) Introduction. First program in C++ Programming examples

CS383 PROGRAMMING LANGUAGES. Kenny Q. Zhu Dept. of Computer Science Shanghai Jiao Tong University

1 The Catholic University of Eastern Africa P.o Box , Nairobi Kenya Edward Kioko 2013

Software. Programming Languages. Types of Software. Types of Languages. Types of Programming. Software does something

Java Applets, etc. Instructor: Dmitri A. Gusev. Fall Lecture 25, December 5, CS 502: Computers and Communications Technology

CSI32 Object-Oriented Programming

Visual Basic Primer A. A. Cousins

Compilation I. Hwansoo Han

Introduction P L COS 301. Fall School of Computing and Information Science University of Maine. Introduction COS 301.

Instructor s Notes Web Data Management Web Client/Server Concepts. Web Data Management Web Client/Server Concepts

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.

Using the Computer Programming Environment

Programming: C ++ Programming : Programming Language For Beginners: LEARN IN A DAY! (Swift, Apps, Javascript, PHP, Python, Sql, HTML) By Os Swift

Introduction to Scientific Computing Languages

LECTURE 1. Overview and History

CS Prof J.P.Morrison

CS 3360 Design and Implementation of Programming Languages. Exam 1

Introduction to Scientific Computing Languages

Introduction to Web Concepts & Technologies

COSC 2P90 Programming Languages & Object-Orientation

Lecture 1. Introduction to course, Welcome to Engineering, What is Programming and Why is this the first thing being covered in Engineering?

Introduction to Computers and Visual Basic.Net Pearson Education, Inc. All rights reserved.

8/27/17. CS-3304 Introduction. What will you learn? Semester Outline. Websites INTRODUCTION TO PROGRAMMING LANGUAGES

8/23/18. Programming Language Genealogy The Evolution of Programming Languages. Zuse s Plankalkül. Plankalkül Syntax. Machine Code

CS102 Unit 2. Sets and Mathematical Formalism Programming Languages and Simple Program Execution

Evolution of the Major Programming Languages

CSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York

Stating the obvious, people and computers do not speak the same language.

Outline. Programming Languages 1/16/18 PROGRAMMING LANGUAGE FOUNDATIONS AND HISTORY. Current

Programming Concepts

SECOND YEAR III Paper I Applied Mathematics Paper II Microprocessors & Assembly Language Programming

Tutorial Point On Html5 Pdf

In the hardware module, you saw the basic execution of a program Programs are written in specific languages Each language has it s strengths and

C++ Programming Language Lecture 2 Problem Analysis and Solution Representation

Question No: 1 ( Marks: 1 ) - Please choose one One difference LISP and PROLOG is. AI Puzzle Game All f the given

INT213. Active Server Pages using Visual Basic Scripting

CS2900 Introductory Programming with Python and C++ Kevin Squire LtCol Joel Young Fall 2007

JavaScript Context. INFO/CSE 100, Spring 2005 Fluency in Information Technology.

Chapter 5. Names, Bindings, and Scopes

Requirements Specification

Programming Language Concepts 1982, 1987, Outline. Period

CSc 372. Comparative Programming Languages. 2 : Functional Programming. Department of Computer Science University of Arizona

Outline. Program development cycle. Algorithms development and representation. Examples.

JAVASCRIPT - CREATING A TOC

PROBLEM SOLVING AND PYTHON PROGRAMMING

Transcription:

30 th September 2018

Objective: To learn meaning and concepts of programming Outcome: By the end of this students should be able to describe the meaning of programming

Section 1: What is a programming language? Section 2: Why many programming languages? Section 3: Types of programming languages? Section 4: Does the world need new languages? Section 5: Learn your first language( mama ) html Section 6: Review Questions Next week-3: Unit 1B Content Precursor

A programming language is a set of rules that provides a way of telling a computer what operations to perform. A programming language is a set of rules for communicating an algorithm. It provides a linguistic framework for describing computations.

A programming language is a notational system for describing computation in a machine-readable and human-readable form. A programming language is a tool for developing executable models for a class of problem domains.

English is a natural language. It has words, symbols and grammatical rules. A programming language also has words, symbols and grammatical rules. The grammatical rules are called syntax. Each programming language has a different set of syntax rules; same way as natural language thus..

d a L o v e l a c e N a m e : B o r n A u g u s t a A d a B y r o n, A d a L o v e l a c e w a s a l s o k n o w n as A u g u s t a A d a K i n g and the C o u n t e s s of L o v e l a c e. B o r n : D e c e m b e r 10, 1815 in L o n d o n D e a t h : N o v e m b e r 27, 1852 ( A g e : 36) C o m p u t e r r e l a t e d c o n t r i b u t i o n s S h e is c r e d i t e d as b e i n g t h e w o r l d s f i r s t c o m p u t e r p r o g r a m m e r. D e v e l o p e d t h e f i r s t a l g o r i t h m to be p r o c e s s e d by a m a c h i n e. H e l p e d C h a r l e s B a b b a g e w i t h h i s a n a l y t i c a l e n g i n e. P u b l i c a t i o n s S k e t c h of t h e A n a l y t i c a l E n g i n e I n v e n t e d by C h a r l e s B a b b a g e R e l a t e d c o m p u t e r p i o n e e r s C h a r l e s B a b b a g e

Programming languages have evolved over time as better ways have been developed Popularity of programming languages picked up in 1950s Since then thousands of languages have been developed Different programming languages are designed for different types of programs & purpose.

High-level programs (e.g. English writin gclass Triangle { (3 rd 4th, 5 th, nth GenerationsLanguages)... float surface() return b*h/2; } Low-level program (e.g. English Translation) (2 nd Generation/Assembly Language) Executable Machine code (e.g. Maths) (1 st Generation Machine Language) LOAD r1,b LOAD r2,h MUL r1,r2 DIV r1,#2 RET 0001001001000101 0010010011101100 10101101001...

First Generation Languages Machine Language Second Generation Languages-Assembly Language Third Generation Languages High Level Language Fourth Generation Languages-Problem-oriented Fifth Generation Languages -Close to Natural Language n th /Future Generation Language- Plug & play Expected

Machine language (0 and 1) Operation code such as addition or subtraction. Operands It identifies the data to be processed. Machine language is machine dependent as it is the only language the computer can understand. challenges Very efficient code but difficult to write. Not user friendly; even for top mathematicians

Translators/Assembly languages Introduces mathematics symbols/ operation codes (2 nd GL introduces symbols #, * ; %, () {} [] <> C/:) Each assembly language instruction is translated into one machine language instruction. Very efficient code and easier to write. Types of Translators are: Interpreter, Assembler and compiler (NB: refer to slide 15)

Closer to English but included simple mathematical notation (syntax) for computer translators to understand and translate meaning to machine language level for execution. Programs written in source code (closer to English/natural expressions) must be translated into machine language; also called object code ( 0&1 codes defined internally for the computers); through the translators ( middle-man ).

Alternative to compilation ( by system compiler program ) is interpretation which is accomplished by a system program called an interpreter. Common third generation languages FORTRAN COBOL C and C + + Visual Basic

3 rd, 4 th 5 th Generation/High level languages Allows Programmer to write natural English language Purpose 1 2 nd Generation/ Assembly Languages Purpose 2 purpose 3 ASSEMBLER (OS) Focus to translate Symbols in 3 rd G for 1G to execute INTERPRETER (VBIDE) Alert errors at coding time Translate Alpha & Numeric COMPILER (C++ IDE) Alert errors at run time. Translates Alpha & Numeric 1 st Generation/ Low level /Machine Language Understands 0 and 1 bits only Nb: Ideally, installed IDE is the interpreter/compiler

Another high level language having fewer instructions (syntax) to accomplish a task than a third generation language. Most of the routine syntax required are automatically embedded for easy/friendly programming and reduce time spent for coding. Used with Databases Query languages (Structured Query Languages-SQL) Report generators Forms designers Application generators

Provides icons, menus, drawing tools (object oriented (e.g. VB, python, Ruby, Visual C++ etc. ) (More functions are visually represented as object Click & Declare) Declarative languages Functional(?): Lisp, Scheme, SML Also called applicative Everything is a function Logic: Prolog Based on mathematical logic Rule- or Constraint-based

Though no clear definition at present Ongoing proposal and expectation for programs where user only state their problem and get things done (plug & Play) 5 th generation has Limited capabilities at present and thus require some further works in the software engineering world.

Do you have to learn every language A-Z? NO! E.g. American English vrs British English)

Imperative Programming (C) Object-Oriented Programming (C++) Logic/Declarative Programming (Prolog) Functional/Applicative Programming (Lisp)

Two broad groups Traditional programming languages Sequences of instructions First, second and some third generation languages Object-oriented languages Easy Approach (visual clicks Objects are created rather than sequences of instructions Some third generation, and fourth and fifth generation languages Types: see page 22

Type: FORTRAN FORmula TRANslation. Developed at IBM in the mid-1950s. Designed for scientific and mathematical applications by scientists and engineers.

Type 2: COBOL COmmon Business Oriented Language. Developed in 1959. Designed to be common to many different computers. Typically used for business applications.

Type 3: BASIC Beginner s All-purpose Symbolic Instruction Code. Developed at Dartmouth College in mid 1960s. Developed as a simple language for students to write programs with which they could interact through terminals.

Type 4: C Developed by Bell Laboratories in the early 1970s. Provides control and efficiency of assembly language while having third generation language features. Application: Often used for hardware/system program. UNIX OS is written in C.

Type 1: Simula First object-oriented language Developed by Ole Johan Dahl in the 1960s. Type 2: Smalltalk First purely object-oriented language. Developed by Xerox in mid-1970s. Still in use on some computers.

Type 3: C++ It is C language with additional features. Widely used for developing system and application software. Graphical user interfaces can be developed easily with visual programming tools.

Type 4: JAVA An object-oriented language similar to C + + that eliminates lots of C ++ s problematic features Allows a web page developer to create programs for applications, called applets that can be used through a browser. Objective of JAVA developers was to have languge very independent to run on any machine, platform or operating system.

Scripting Languages (Websites) JavaScript and VBScript Php and ASP Perl and Python Command Languages sh, csh, bash Text processing Languages (Journals) LaTex, PostScript

HTML HyperText Markup Language. Used on the Internet and the World Wide Web (WWW). Web page developers puts brief codes called tags in the page to indicate how the page should be formatted.

XML Extensible Markup Language. A language for defining other languages.

When it comes to mechanics of the task, learning to speak and using programming languages are in many ways like learning to speak a human language Both languages require a user to learn new vocabulary, syntax and semantics (new words, sentence structure and meaning) Both languages require considerable practice into perfection.

Computer languages lack ambiguity and vagueness. (rules of the language are restrictive) Unlike English sentences such as I saw the man with a telescope (Who has the telescope?) or Take a pinch of salt (How much is a pinch?) In a programming language, a sentence has one meaning (restrictive) or otherwise meaningless. Garbage in garbage out.

Run-time performance Life cycle (human) cost is more important e.g. Ease coding Efficient debugging Quick Maintenance

Writability: The quality of a language that enables a programmer to use it to express a computation clearly, correctly, concisely, and quickly. Readability: The quality of a language that enables a programmer to understand and comprehend the nature of a computation easily and accurately. Orthogonality: The quality of a language that features provided have as few restrictions as possible and be combinable in any meaningful way. Reliability: The quality of a language that assures that a program will not behave in unexpected or disastrous ways during execution. Maintainability: The quality of a language that reduces errors. It can be found and corrected and new features can also be added.

Generality: The quality of a language that avoids special cases in the availability or use of constructs and by combining closely related constructs into a single more general one. Uniformity: The quality of a language that states; similar features should look similar and behave similar. Extensibility: The quality of a language that provides some general mechanism for the user to add new constructs to a language. Standardability: The quality of a language that allows programs written to be transported from one computer to another without significant change in language structure. Implementability: The quality of a language that enables a translator or interpreter to be can be written. This can address to complexity of the language definition.

1 st generation 2 nd generation 3 rd generation 4 th generation 5 th generation What determines a good language Criteria for good language design (W.R.O.R.M.G.U.E.S.I.)

www.offline w3 school html package.com A4 sheet start Show only text in my body Heading of my content Story Content First Paragraph Story content - free <html> <body> < h 1 > THE STORY OF MY LIFE-JULIET</h1> My name is Eric. I come from Aburi.. < p > < / p > When I leave school I will be a programmer I may travel to America to advance IT skills Body closed A4 sheet limit close < / body> < / h t m l > 1. create project 1folder. Keep all images and resources to display in that folder. 2. save notepad as Eric.html

Programming set of Rules 1. Sequence 2. Selection 3. Iteration 4. Read Recommended book before class

Thank you