Professional Documents
Culture Documents
Chapter 132017
Chapter 132017
Chapter 132017
Chapter
Programming
Languages
Chapter 13
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Learning Objectives
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Introduction
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Programs and Programming
Program
A list of instructions for the computer to follow to accomplish the
task of processing data into information
Statements used in a programming language such as C++, Java, or
Visual Basic
Programs can be
Computing Essentials 2017
Prewritten/packaged
Custom-made
Programming or Software Development
Actually a problem-solving procedure
List of instructions for the computer to follow to process data
Follows a six-step process know as the System Development Life
Cycle
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Six-Step Software Development Life
Cycle
5. Program documentation
6. Program test
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Program Specification
1. Program’s objectives
2. Desired output
3. Input data required
4. Processing requirements
5. Documentation
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Defining Program Specification
Program objectives
Requires a clear statement of the
problem being addressed
Desired output
The end-user should communicate
the inputs and outputs
Computing Essentials 2017
Input data
Determine the source of the data
Processing requirements
Tasks to move input to output
Program specification document
Document program specifications
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Program Design
Pseudocode
Flowcharts
Logic structures
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Top-Down Program Design
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Pseudocode
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Flowcharts
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Logic Structures
Sequence Repetition
Enables you to write structured
programs, which take much of
the guesswork out of
programming
Sequential structure
One program statement follows Selection
Computing Essentials 2017
another
Selection structure
A decision must be made
Repetition structure or Loop
Structure
Describes a process that may be
repeated as long as certain condition
remains true
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Program Code
understandable
Structured programs – one of the
best ways to code effective
programs
Using logic structure
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Coding
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Program Test
Debugging
The process of testing and then
eliminating errors such as:
Syntax errors are a violation of the
rules of programming language
Logic errors occur when the
Computing Essentials 2017
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Program Testing Processes
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Case Tools and Object-Oriented
Programming
Computer-aided software
engineering (CASE)
Automates portions of the
development process
Object-oriented software –
OOP
Computing Essentials 2017
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Generations of Programming Languages
Levels or Generations
Coding from machine languages to human or
natural languages
There are five distinct generations
Lower level is closer to machine language
Computing Essentials 2017
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
5 Generations
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Generation Samples
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Careers In IT
Information Systems
Desired traits include patience,
logical thinking, and attention
to detail
Computer Programmers can expect
to earn $51,000 to $64,000
annually
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
A Look to the Future ~ Your Own
Programmable Robot
becoming cheaper
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Open-Ended Questions (Page 1 of 2)
2. Describe CASE tools and OOP. How does CASE assist programmers?
Computing Essentials 2017
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.
Open-Ended Questions (Page 2 of 2)
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or
posted on a website, in whole or part.