EXPLAIN THE CONCEPT OF PROGRAMMING. Programming Languages and Program Development Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall2.

Slides:



Advertisements
Similar presentations
Computers Are Your Future
Advertisements

Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Programming and Languages Chapter 13.
Computers Are Your Future Twelfth Edition
McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Programming and Languages.
Computers Are Your Future © 2006 Prentice Hall, Inc.
Computers: Tools for an Information Age
Computer Programming How Can You Create Your Own Software? Chapter 11.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
Program Development and Programming Languages
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
Programming and Languages Chapter Competencies (Page 1 of 2) Describe the six steps of programming Discuss design tools including top-down design,
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 1 The Systems Development Environment Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
PRE-PROGRAMMING PHASE
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Building Applications.
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.
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.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
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.
Computers Are Your Future Eleventh Edition
Structured COBOL Programming, Stern & Stern, 9th edition
Welcome to OBJECT ORIENTED PROGRAMMIN Date: 10/09/2014 Prepared By Prepared By : VINAY ALEXANDER PGT(CS) KV jhagrakhand.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
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.
Copyright Prentice Hall, Inc. 1 Computers: Information Technology in Perspective, 11e Larry Long and Nancy Long Chapter 11 Developing Business Information.
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.
Computing Essentials 2014 Programming and Languages © 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not.
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
Chapter 12 Computer Programming. Chapter Contents Chapter 12: Computer Programming 2  Section A: Programming Basics  Section B: Procedural Programming.
Copyright © Prentice Hall Programming and Languages Chapter 14 Telling the Computer What to Do.
Programming and Languages
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Chapter 12: Computer Programming 1 Computer Programming Chapter 12.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
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++
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
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.
CSCI-235 Micro-Computer Applications
Computer Programming.
Chapter 1 Introduction(1.1)
and Program Development
Presentation transcript:

EXPLAIN THE CONCEPT OF PROGRAMMING

Programming Languages and Program Development Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall2

Objectives  Explain what a programming language is and how it works.  Explain the development of programming languages over the years and the benefits and drawbacks of high- level programming languages.  Explain how object-oriented languages attempt to remedy the shortcomings of earlier languages. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall3

Objectives  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 © 2012 Pearson Education, Inc. Publishing as Prentice Hall4

Programming Languages and How They Work  Programming Process used to create software programs  Programmers People who use programming languages to create software applications  Programming languages Consist of a vocabulary and a set of rules called syntax Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall5

Programming Languages and How They Work  Interface Point of interaction between components, such as the interaction between a user’s screen and the computer code, which results when running a program Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall6

Development of Programming Languages Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall7

Development of Programming Languages Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall8 Compilers and interpreters o Source code—programming instructions in the original form needed to translate a form that the computer can understand o Code—programming instructions created by the programmers o High-level language—language that mimics English; does not require a programmer to understand the intimate details of how hardware, especially the processor, handles data

Development of Programming Languages Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall9 Compilers and interpreters o Compiler—utility program translates source code into object code o Executable program—code transformed from object code ready to run programs that do not need to be altered o Interpreter—translation program that does not produce object code—translates one line of source code at a time; executes the translated instruction

Development of Programming Languages  Five generations of programming languages Machine Assembly Procedural Nonprocedural Natural Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall10

Development of Programming Languages First-generation languages Machine language ○ Based on binary numbers ○ Only programming language that a computer understands directly ○ Machine dependent Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall11

Development of Programming Languages Second-generation language Assembly language ○ Low-level language ○ Programs use: Mnemonics—brief abbreviations for program instructions make assembly language easier to use Base-10 (decimal) numbers ○ Must be translated into machine language by an assembler ○ Occasionally used to create device drivers Programs to control devices attached to a computer and game console programs Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall12

Development of Programming Languages Third-generation languages High-level languages—do not require programmers to know details relating to the processing of data Easier to read, write, and maintain than assembly and machine languages Source code must be translated by a language translator Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall13

Development of Programming Languages Third-generation languages (con’t.) o Spaghetti code—difficult to follow, messy in design, prone to errors due to numerous GOTO statements o Structured programming—set of quality standards; programs more verbose but more readable, reliable, and maintainable GOTO statements forbidden Examples: - Ada - Algol - Pascal Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall14

Development of Programming Languages Third-generation languages (con’t.) o Modular programming—dividing larger programs into separate modules, each takes care of a specific function o Information hiding—also known as encapsulation, modular programming makes it possible to hide details in sensitive applications o Programming languages include: Fortran C Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall15

Development of Programming Languages Procedural languages o Provide detailed instructions that are designed to carry out a specific action such as printing a formatted report Nonprocedural languages o Do not require programmers to use step-by-step instructions Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall16

Development of Programming Languages Fourth-generation languages Nonprocedural languages Do not require step-by-step procedures Examples ○ Report generators (database reports) ○ Query languages SQL (Structured query language)—enables users to phrase simple or complex requests for data Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall17

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

Development of Programming Languages  Object-oriented programming (OOP) Programming technique based on data being conceptualized as objects ○ Object—unit of computer information that defines a data element that is used to model real-world objects ○ Attributes define the data ○ Procedures or operations are called methods Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall19

Development of Programming Languages  Object-oriented programming (OOP) (con’t.) Class—blueprint or prototype from which objects are made Inheritance—ability to pass on characteristics from a class to subclasses Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall20

Development of Programming Languages  Program development methods Rapid application development (RAD) ○ Reuses prebuilt objects ○ Possible because of OOP Joint application development (JAD) ○ Uses a team approach ○ Involves end users throughout development Agile software development techniques—use collaboration between teams to develop solutions to meet customer needs and company goals Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall21

The Program Development Life Cycle  Program development life cycle (PDLC) Organized plan for managing the development of software Consists of six phases, from problem definition through program implementation and maintenance Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall22

The Program Development Life Cycle Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall23

The Program Development Life Cycle  Phase 1: Defining the problem Define the problem the program will solve Define the program specifications, including decisions regarding data input, required processing, output, and the user interface Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall24

The Program Development Life Cycle  Phase 2: Designing the program Program design—identifies components of the program ○ Top-down program design—breaks program into small, manageable, highly focused routines Procedures, functions, or subroutines ○ Structured design uses control structures— logical elements assembled in blocks of code that determine how subroutines will be programmed Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall25

The Program Development Life Cycle  Phase 2: Designing the program (con’t.) Basic control structures categories ○ Sequence control structure—code performed in line- by-line order ○ Selection control structure—also called a conditional or branch structure, this is a portion of code that leads to a block of code based on conditions being met ○ Case control structure—portion of code that branches to extensive conditional coding ○ Repetition control structure—also known as looping or iteration, this is a portion of code that repeats Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall26

The Program Development Life Cycle  Phase 2: Designing the program (con’t.) Algorithm ○ Combination of control structures ○ Step-by-step description of how to arrive at a solution Nesting ○ Process of embedding control structures within one another Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall27

The Program Development Life Cycle  Phase 2: Designing the program (con’t.) Program design tools ○ Structured charts—also called hierarchy charts, show top-down design of programs ○ Flowcharts—use diagrams to show the logic of a program ○ Unified Modeling Language (UML)—variation of flowcharting used to illustrate and document object- oriented systems during development ○ Pseudocode—uses a stylized form of writing to describe logic Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall28

The Program Development Life Cycle  Phase 3: Coding the program Programmers convert algorithms into programming code Syntax errors ○ Mistakes in the construction of the programming commands ○ Must be corrected for the program to run appropriately Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall29

The Program Development Life Cycle  Phase 4: Testing and debugging the program All errors, not just syntax errors, must be removed Logic errors ○ Relate to problems in the solution’s design ○ Cause incorrect output ○ Program still runs despite logic errors Syntax errors and logic errors—bugs Debugging—process of eliminating errors Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall30

The Program Development Life Cycle  Phase 5: Documenting the program Documentation includes: ○ Overview of program functionality ○ Tutorials ○ Thorough explanation of main features ○ Reference documentation of program commands ○ Description of error messages ○ Program design work, including structure charts, pseudocode, and flowcharts Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall31

The Program Development Life Cycle  Phase 6: Implementing and maintaining the program Test the program ○ Have users work with the software ○ Correct errors Program maintenance ○ Fix program errors discovered by users ○ Conduct periodic evaluations on a regular basis ○ Make modifications as needed to update the program or add features Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall32