Problem Solving with C++ (9th Edition)
Problem Solving with C++ (9th Edition)
9th Edition
ISBN: 9780133591743
Author: Walter 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, using the syntax of whatever language you like, that produces different behavior depending on whether pass-by-reference or pass-by-value-result is used in its parameter passing.
The Problem: Your program has detected an internal problem that needsdebugging. But the program is not being debugged. How do you let theprogrammer at the problem?
Help Me With C Programming   On their way down the river, Jojo and Lili saw two frogs in X1 and X2 respectively. The two frogs are seen jumping up and down happily in the same direction, which is coming to Jojo. After noticing the two frogs, Jojo and Lili noticed that the speed of the two frogs was different. The first frog to start jumping from the X1 position has a speed of V1, while the second frog that starts jumping from the X2 position has a V2 speed. Jojo guessed that the "YES" of the two frogs would be in the same position in a given T time, while Bibi guessed the "NO" of the two frogs would never be in the same position in that time. Help Jojo and Lili take into account the frog's movements to determine if their guess is correct. Format Input The first line of input consists of a series of integers namely X1, V1, X2, V2, T. X1 and V1 are the starting positions and jumping speeds per second of the first frog. X2 and V2 are the starting positions and jumping speeds per second…

Chapter 1 Solutions

Problem Solving with C++ (9th 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
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT