Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Slides:



Advertisements
Similar presentations
Ch13QQ T F 1. The first step in the program development life cycle (PDLC) is problem analysis. T F 2. The use of structured programming typically.
Advertisements

Computers Are Your Future
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.
Programming Creating programs that run on your PC
Chapter 2- Visual Basic Schneider
McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Programming and Languages.
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Computer Programming How Can You Create Your Own Software? Chapter 11.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Developing Business Information Systems Chapter 11.
Programming and Languages Chapter Competencies (Page 1 of 2) Describe the six steps of programming Discuss design tools including top-down design,
1 CIS 100 Winter 2005 Week 10 Lecture Dr. David Gadish.
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.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
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.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
Program development & programming languages Chapter 13.
Programming Languages: Telling the Computers What to Do Chapter 16.
Computers Are Your Future Eleventh Edition
Understanding Computers Ch. 131 Chapter 13 Program Development and Programming Languages.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming (CS 102) C++ Programminhg.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
College of Computer and Information Science Chapter 14 Programming and Languages.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
Programming Lifecycle
Chapter 15 Program Development and Programming Languages.
College of Computer and Information Science Chapter 14 Programming and Languages.
Computing Essentials 2014 Programming and Languages © 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Programming Languages and the Programming Process.
Programming and Languages
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Structured Programming (4 Credits)
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Lecture (8) Programming Design Dr. Emad Elsharkawy Eng- Omar Salah Dr:Emad Elsharkawy 1 Saturday, 13 February 2016.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Copyright © 2012 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 14: Programming and Languages.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
PROGRAMMING. Computer Programs  A series of instructions to the computer  pre-written/packaged/off-the-shelf, or  custom made  There are 6 steps to.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Programming and Languages
CSCI-235 Micro-Computer Applications
Computer Programming.
Chapter 2- Visual Basic Schneider
Chapter 14: Programming and Languages
Programming Languages
Programming Concepts and Languages
Problem Solving Techniques
Programming & languages
Chapter 14: Programming and Languages
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
The Programming Process
PROGRAMMING AND LANGUAGES
Programming and Languages
Presentation transcript:

Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Competencies (Page 1 of 2) Describe the six steps of programming Discuss design tools including top-down design, pseudocode, flowcharts, and logic structures Describe program testing and the tools for finding and removing errors 14-2 Page 4398

Competencies (Page 2 of 2) Describe CASE tools and object-oriented software development Explain the five generations of programming languages 14-3 Page 398

Introduction In this chapter programming is described in two parts... The steps in the programming process Some of the programming languages available Programming is part of Phase 4, Systems Development, in the Systems Life Cycle. Competent end users need to understand the relationship between systems development and programming Page 399

Programs and Programming What is a Program? – A program is a list of instructions – Code, Application – Programmer, Hacker A problem-solving procedure – A list of instructions Prewritten Custom-written Application software System software 14-5 Page 400

– – – – – What is Programming? Programming is software development Six step procedure Program specification Program design Program code –Program test Program documentation Program maintenance 14-6 Page 400

– – – – Step 1: Program Specification Also called programs definition or program analysis 5 Step Process Program Objectives Desired Output –Input Data Processing Requirements Document Program Specifications 14-7 Page 401

Program Objectives Objectives are the problems that you are trying to solve Programming requires a clear statement of the problem that you are looking to address 14-8 Page 401

Program Specification Steps Continued Desired output Input Data Processing Requirements Program Specifications End user’s sketch of desired output Document Example of statement of Page 402 hours worked 14-9

Step 2: Program Design Plan a solution Use structured programming techniques – Top-down program design – Pseudocode – Flowcharts – Logic structures Page 403

Top-Down Program Design Page 403

Pseudocode Summarizes the logic for a program. Informal list of instructions. Like a program, but written in English words Page 404

Flowchart Flowchart symbols Page 404 Flowchart example 14-13

Logic Structures Sequence structure Selection structure Loop structure Page 404

Step 3: Program Code Writing the program or coding The good program – Reliable – Catch input errors – Understandable to other programmers – Structured programs best method – Use the most appropriate computer language Coding Page 407

Coding Formatting or presentation language Programming language Page 408

Common Programming Languages C C++ Java Python, Perl Visual Basic – Basic Fortran – Older, for numerical Cobol – Older, for transaction processing systems (TPS) Assembler ( = machine language) Page 408

Step 4: Program Test Debugging – Testing – Eliminating errors Syntax errors Logic errors Testing process Page 422

Types of Testing Desk checking – sit and look at it Manual testing – try specific data values Translation – try to “compile” i – This catches syntax errors Run the program – Testing on sample data Beta testing – Give preliminary version to a few brave users Page 422

Step 5: Program Documentation Written descriptions and procedures about a program Important for people who will use the program – Users – Operators – Programmers Page 411

Step 6: Program Maintenance 75% of total lifetime cost Error-free operations Effective program Two categories – Operations – Changing needs Page 412

Case Tools Computer-aided software engineering (CASE) – Automate development process Designing Coding Testing activities Page 414

Object-Oriented Software Development Focuses less on procedures, more on relationship between objects OOP: Object-oriented programming Object contains both the data and the processing operations Page 415

Generations of Programming Languages (Page 1 of 2) Occurring in “generations” or “levels” – Levels-Machine languages to natural languages There are five generations : – Lower level closer to machine language – Higher level closer to human-like language Page 415

Generations of Programming Languages (Page 2 of 2) 1 st -- Machine languages 2 nd -- Assembly languages 3 rd -- High level procedural languages (3GL) 4 th -- Problem-Oriented languages (4GL) 5 th -- Natural Languages & Visual programming languages (5GL) Page 415