Problem Solving with C++ (10th Edition)
Problem Solving with C++ (10th Edition)
10th Edition
ISBN: 9780134521176
Author: SAVITCH
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 1.4, Problem 26STE
Program Plan Intro

Programming mistakes:

  • A fault in a program denotes a bug and process of elimination of bugs is termed as debugging.
  • A bug denotes an error, failure or fault in a program that may generate improper result.
  • The process of fixing bugs is termed as debugging.
  • Some of computer systems are able to deter, detect or auto correct different computer bugs during operations.
  • The bugs arise from errors made in source code of program.
  • The bugs can cause program to freeze computer in terms of processing.

Types of program errors:

  • The three main types of program error includes:
    • Syntax errors:
      • The compiler catches certain mistakes and denotes an error message.
      • It denotes violation of syntax of programming language.
      • The compiler issues an error message if syntax is been violated.
      • The compiler sometimes raises a warning message while any unusual programming practices.
    • Run-time errors:
      • It denotes type of error that system detects when a program is run.
      • The system may detect certain run-time errors and displays appropriate error message.
      • It may be an issue with numeric calculations.
    • Logic error:
      • It denotes a mistake in underlying algorithm.
      • It may be an issue while translation of algorithm to program code.
      • It denotes that there is no error in syntax while the result obtained is not as expected by user.
      • These types of errors could be corrected by careful examination of algorithm and translation.

Blurred answer
Students have asked these similar questions
Write a program in Nim language to greet anyone which take name as input before asking what is your name and then take the name from user and then print hi good morning and that name
Let's have a look at the testability hint and go through the compiler quickly.
Write a program with the given situation and test your program using the three cases of the three students using the  C++ language.

Chapter 1 Solutions

Problem Solving with C++ (10th Edition)

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education