Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.

Slides:



Advertisements
Similar presentations
Computers Are Your Future
Advertisements

Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Programming and Languages Chapter 13.
Computers Are Your Future Twelfth Edition
Programming Creating programs that run on your PC
1 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall.
Computers Are Your Future © 2006 Prentice Hall, Inc.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Computers: Tools for an Information Age
Computer Programming How Can You Create Your Own Software? Chapter 11.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall.
S/W Programming & Languages Chapter 10 Where Your Software Comes From © The McGraw-Hill Companies, Inc., 2000.
© Prentice Hall CHAPTER 3 Computer Software.
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Building Applications.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 1.1.
Your Interactive Guide to the Digital World Discovering Computers 2012.
© Paradigm Publishing Inc Chapter 12 Programming Concepts and Languages.
Computers Are Your Future Twelfth Edition Chapter 11: Program Development and Programming Languages Copyright © 2012 Pearson Education, Inc. Publishing.
Chapter 13 Programming Languages and Program Development.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
Chapter 13 Programming Languages and Program Development 1.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Program development & programming languages Chapter 13.
Programming Languages: Telling the Computers What to Do Chapter 16.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Computers Are Your Future Eleventh Edition
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
CC111 Lec#5: Program Development 1 Program Development and Programming Languages Lecture 4 Reference :Understanding Computers Chapter 13.
Welcome to OBJECT ORIENTED PROGRAMMIN Date: 10/09/2014 Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming (CS 102) C++ Programminhg.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
4 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
Programming Languages and Program Development Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 1.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
Chapter 15 Program Development and Programming Languages.
Computer Concepts 2014 Chapter 12 Computer Programming.
1 Chapter 13 Understanding Computers, 11 th Edition 13 Program Development and Programming Languages TODAY AND TOMORROW 11 th Edition CHAPTER.
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
What is Programming? A program is a list of instructions that is executed by a computer to accomplish a particular task. Creating those instructions is.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Software Development Programming & Languages. Programming: A Five-Step Procedure Define the problem Design a solution Code the program Test the program.
EXPLAIN THE CONCEPT OF PROGRAMMING. Programming Languages and Program Development Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall2.
Computing System Fundamentals 3.1 Language Translators.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 1.
Introduction to Computers Lesson 13B. home Syntax Programming language rules.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Computers Are Your Future Twelfth Edition Chapter 11: Programming Languages and Program Development Copyright © 2012 Pearson Education, Inc. Publishing.
Computers Are Your Future Twelfth Edition Chapter 11: Programming Languages and Program Development Copyright © 2012 Pearson Education, Inc. Publishing.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
Introduction to Programming Languages © 2005 Prentice Hall, Inc. CXC IT Unit 2: Intro. to Programming.
Welcome to OBJECT ORIENTED PROGRAMMING Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
1 Copyright © 2003 Prentice Hall, IncSlides created by Bob Koziel.
Sections Basic Concepts of Programming
CSCI-235 Micro-Computer Applications
Programming Concepts and Languages
Objectives Overview Differentiate between machine and assembly languages Identify and discuss the purpose of procedural programming languages, and describe.
and Program Development
Presentation transcript:

Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1

2 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2009 Pearson Education, Inc. Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall

What You Will Learn Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall3 Explain what a programming language is. Contrast machine language and assembly language. Discuss the benefits and drawbacks of high-level programming languages. Explain how object-oriented languages attempt to remedy the shortcomings of earlier languages.

What You Will Learn List several popular object-oriented languages and explain their advantage over older languages. List the six phases of the program development life cycle (PDLC) and explain why the PDLC is needed. Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall4

What You Will Learn Explain why top-down program design makes programs easier to debug and maintain. List the three basic types of control structures and the advantages of each. Differentiate between syntax errors and logic errors in programs. Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall5

Programming Language & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall6

Development of Program Languages Programming is the creation of software applications. Programmers are the people who create the software applications. A programming language is a language used by programmers to create programs or software that the computer understands. Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall7

Development of Program Languages Syntax is the vocabulary and “grammar” of a programming language. Code is the programming instructions created by the programmers. Source code, the only form of code that humans can read, is program code in its original form. Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall8

Development of Program Languages Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall9

Development of Program Languages There are five distinct programming language generations, or levels: Machine language Assembly language Procedural languages Nonprocedural languages Natural languages Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall10

Development of Program Languages Machine language First-generation language Based on binary numbers The only programming language a computer understands directly Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall11

Development of Program Languages Assembly language A low-level, second-generation language Requires programming individual instructions for each task to be performed by the microprocessor Mnemonics Uses brief abbreviations for program instructions Makes language easier to use than machine language Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall12

Development of Program Languages Procedural languages Third-generation languages Considered high-level languages Do not require programmers to know details relating to the processing of data Easier to read, write, and maintain Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall13

Development of Program Languages Two utility programs that translate code so that the computer can interpret and run programs are: Compilers Translate source code into object code Interpreters Translate source code and execute instructions Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall14

Development of Program Languages Categories of Procedural Language Structured programming languages A solution to spaghetti code Lots of GOTO statements Difficult to follow and prone to errors A set of standards to make programs more readable, reliable, and maintainable Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall15

Development of Program Languages Categories of Procedural Language (continued) Modular programming languages Divide programs into self-contained modules Use information hiding: keeping information about one module secret from authors of other modules Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall16

Development of Program Languages Nonprocedural languages Fourth-generation languages Report generators (database reports) Query languages SQL (structured query language) Doesn’t require programmers to deal with step- by-step procedures to achieve the appropriate programming outcome Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall17

Development of Program Languages Natural language Fifth-generation languages Still being perfected Nonprocedural Use everyday language to program Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall18

Development of Program Languages Object-oriented programming (OOP) Coding is attached to basic prebuilt items called objects, which include: Data Procedures or operations called methods An interface to exchange messages with other objects Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall19

Development of Program Languages Object-oriented programming (OOP) (continued) Makes information hiding or encapsulation a reality Examples of object-oriented programming languages are C++, Java, and Visual Basic.NET Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall20

Development of Program Languages Elements of object-oriented programming Objects: units of computer information Classes: categories of objects Reusability of objects Inheritance: ability to pass on characteristics to subclasses Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall21

Development of Program Languages Rapid application development (RAD) Made possible by object-oriented programming Relies on reusability of objects Joint application development (JAD) Similar to RAD but involves end-user in planning Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall22

Development of Program Languages Advantages of OOP: Allows networked computers to query objects through middleware Does not require code to be changed when data is modified Promotes thinking in a real-world environment, resulting in more effective programs Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall23

A Guide to Programming Languages: One Size Doesn’t Fit All Programmers must select the programming language that can best meets the user’s needs. Two programming languages that have been used since the 1950s are: COBOL (Common Business-Oriented Language) for business applications Fortran (formula translator) for scientific/math/engineering applications Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall24

A Guide to Programming Languages: One Size Doesn’t Fit All Structured and modular languages Required for large-scale program development Examples Ada BASIC Visual Basic Pascal C Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall25

A Guide to Programming Languages: One Size Doesn’t Fit All Object-oriented languages Provide easier programming techniques Examples Smalltalk C++ Java Visual Basic.NET Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall26

A Guide to Programming Languages: One Size Doesn’t Fit All Web-based languages Not considered programming languages Enable the interpretation of both text and objects by browsers Two types: Markup languages Scripting languages Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall27

A Guide to Programming Languages: One Size Doesn’t Fit All Markup languages Define text structure through a set of instructions that are identified with tags. Content lies between tags. Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall28

A Guide to Programming Languages: One Size Doesn’t Fit All Types of markup languages include: HTML (Hypertext Markup Language) XML (Extensible Markup Language) XHTML (eXtensible Hypertext Markup Language Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall29

A Guide to Programming Languages: One Size Doesn’t Fit All Scripting languages Use basic programs called scripts to control Web page actions or responses Types of scripting languages include: VBScript JavaScript Visual Studio.NET Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall30

The Program Development Life Cycle Program development life cycle (PDLC) Used to overcome debugging and maintenance problems Made up of six phases, from problem definition through program implementation and maintenance Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall31

The Program Development Life Cycle Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall32