Completing The Problem-Solving Process
Completing The Problem-Solving Process
Seventh Edition
Chapter 4:
Completing the Problem-Solving Process
Objectives
Figure 4-18 Desk-check table showing the result of the tip calculation
• Syntax errors
– result from breaking programming language’s rules; cause
compiler errors
• Logic errors
– don’t cause compiler errors; can be hard to identify
– Example: entering instructions in the wrong order
• Need a text editor to enter C++ instructions
• Instructions are called source code and are saved in source files
with extension .cpp
• Need a compiler to translate source code into machine code
(also called object code)
An Introduction to Programming with C++, Seventh Edition 34
Step 6–Evaluate and Modify the Program
(cont’d.)