Problem Solving with C++ (10th Edition)
Problem Solving with C++ (10th Edition)
10th Edition
ISBN: 9780134448282
Author: Walter Savitch, Kenrick Mock
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
You are designing the syntax for a new language. The following example presents a loop statement in the language. In this example the tokens “aNumber” and “aResult” are the variable names. A variable name that can be created by the programmer can consist of any combination of alphanumeric characters and underscores. A variable name can be of any length. The tokens “from”, “get”, and “do” are keywords in the language. The list “1,34,21,678” is an example list of numbers from which the “aNumber” variable gets its values one by one. The list length can be of any size. The members of the list are numbers of any length and they are separated by commas. The operators “=” and “*” are keywords in the language. The language provides the operators “+”, “-”, and “/” too.   Write BNF rules to specify the loop statement in this language. Call the start symbol “loop”. Please note in the context-free grammars we do not need to check what value is stored in a non-terminal. Therefore, a variable name…
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.
please answer this question clearly with good explaination thanks

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
    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