Programming and Languages Chapter 14. 14-2 Competencies (Page 1 of 2) Describe the six steps of programming Discuss design tools including top-down design,

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.
Programming Creating programs that run on your PC
Systems Analysis and Design
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.
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Developing Business Information Systems Chapter 11.
Program Development and Programming Languages
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.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
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.
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
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
Invitation to Computer Science 5 th Edition Chapter 9 Introduction to High-Level Language Programming.
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.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
College of Computer and Information Science Chapter 14 Programming and Languages.
Copyright Prentice Hall, Inc. 1 Computers: Information Technology in Perspective, 11e Larry Long and Nancy Long Chapter 11 Developing Business Information.
Programming Lifecycle
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
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.
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.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
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.
Lecture 11: 10/1/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Programming and Languages
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Structured Programming (4 Credits)
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
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.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
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.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
ICS 3UI - Introduction to Computer Science
Programming and Languages
CSCI-235 Micro-Computer Applications
Chapter 2- Visual Basic Schneider
Chapter 14: Programming and Languages
Programming Languages
Problem Solving Techniques
Programming & languages
Chapter 2- Visual Basic Schneider
The Programming Process
PROGRAMMING AND LANGUAGES
Programming and Languages
Presentation transcript:

Programming and Languages Chapter 14

14-2 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 Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.

Describe CASE tools and object-oriented software development Explain the five generations of programming languages Competencies (Page 2 of 2) Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. 14-3

In this chapter programming is described in two parts: (1) the steps in the programming process and (2) 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. Introduction Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. 14-4

What is a Program? A problem-solving procedure –A list of instructions Prewritten Custom-written Application software System software Programs and Programming Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. 14-5

Programming is software development Six step procedure –Program specification –Program design –Program code –Program test –Program documentation –Program maintenance What is Programming? Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. 14-6

14-7 Step 1: Program Specification Also called programs definition or program analysis 5 Step Process –Program ObjectivesProgram Objectives –Desired OutputDesired Output –Input Data –Processing Requirements –Document Program Specifications Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.

Objectives are the problems that you are trying to solve Programming requires a clear statement of the problem that you are looking to address Program Objectives Return Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. 14-8

14-9 Program Specification Steps Continued Desired output Input Data Processing Requirements Program Specifications Document Example of input data End user’s sketch of desired output Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.

Plan a solution Use structured programming techniques –Top-down program designTop-down program design –PseudocodePseudocode –FlowchartsFlowcharts –Logic structuresLogic structures Step 2: Program Design Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

14-11 Top-Down Program Design Return Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.

14-12 Pseudocode Provides an outline of the logic and summary for a program Return

14-13 Flowchart Return Flowchart symbols Flowchart example Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.

Sequence structure Selection structure Repetition structure Logic Structures Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

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 Step 3: Program Code Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Formatting or presentation language Programming language Coding Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Debugging –Testing –Eliminating errors Syntax errors Logic errors Testing process Step 4: Program Test Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Written descriptions and procedures about a program Important for people who will use the program –Users –Operators –Programmers Step 5: Program Documentation Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

75% of total lifetime cost Error-free operations Effective program Two categories –Operations –Changing needs Step 6: Program Maintenance Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Computer-aided software engineering (CASE) –Automate development process Designing Coding Testing activities Case Tools Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Focuses less on procedures, more on relationship between objects OOP: Object-oriented programming Object contains both the data and the processing operations Object-Oriented Software Development Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

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 Generations of Programming Languages (Page 1 of 2) Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

1 st -- Machine languages 2 nd -- Assembly languages 3 rd -- High level procedural languages (3GL) 4 th -- Problem-Oriented languages (4GL) 5 th – Problem and Constraint programming languages (5GL) Generations of Programming Languages (Page 2 of 2) Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Computer programmers create, test, and troubleshoot programs Responsibility may also include updating and repairing existing programs Employers seek individuals with a bachelors degree in computer science or information systems but there are positions available for those with a two-year degree Desired traits include patience, logical thinking, and attention to detail Computer Programmers can expect to earn $51,500 - $88,000 annually Careers In IT Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Synapse Solutions has created a system called MI-tech Understands word order and meaning Computer translates "wish list" into machine language A Look to the Future MI-Tech Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

Identify and discuss each of the six steps of programming. Describe CASE tools and OOP. How does CASE assist programmers? What is meant by “generation” in reference to programming languages? What is the difference between low-level and high-level languages? Discussion Questions (Page 1 of 2) Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved

What is the difference between a compiler and an interpreter? What are logic structures? Describe the differences between the three logic types. Discussion Questions (Page 2 of 2) Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved