Programming Logic and Design: Eighth Edition
Programming Logic and Design: Eighth Edition
Eighth Edition
Chapter 1
An Overview of Computers and
Programming
Objectives
In this chapter, you will learn about:
• Computer systems
• Simple program logic
• The steps involved in the program development cycle
• Pseudocode statements and flowchart symbols
• Using a sentinel value to end a program
• Programming and user environments
• The evolution of programming models
– Output
• Resulting information that is sent to a printer,
a monitor, or storage devices after processing
• A Cloud based device is accessed through the Internet
• Programming language
– Used to write computer instructions called program code
– Writing instructions is called coding the program
– Examples
• Visual Basic, C#, C++, or Java
• Syntax
– Rules governing word usage and punctuation
– Mistakes in a language’s usage are syntax errors
Programming Logic and Design, Eighth Edition 5
Understanding Computer Systems (continued)
• Computer memory
– Computer’s temporary, internal storage – random access memory (RAM)
– Volatile memory – lost when the power is off
• Permanent storage devices
– Nonvolatile memory
• Compiler or interpreter
– Translates source code into machine language (binary language)
statements called object code
– Checks for syntax errors
• Program executes or runs
– Input will be accepted, some processing will occur, and results will be
output
• Output symbol
– Represents output statements
– Parallelogram
• Flowlines
– Arrows that connect steps
• Terminal symbols
– Start/stop symbols
– Shaped like a racetrack
– Also called lozenges
Figure 1-7 Inefficient pseudocode for program that doubles 10,000 numbers