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
Hello, welcome to the Code Blasters code-writing competition! So, let's start with the exercise first. The chef is a master of the number two game, and the chef wants you to play this game with him as he has nothing to do due to the closure of COVID-19. The game is simple chef will give you two numbers (say a and b) and you need to tell that the two given numbers can be equal after performing the given tasks Using the C++ programming language. Increase by 1 OR reducing b by 1 Input: 1 57 Output: YES
IN C PROGRAMMING LANGUAGE AND COMMENT EVERY STEP PLEASE Write a program that takes verbs and forms their past tense on the basis of these rules: a. If verb ends in “e”, add “d”. b. If verb ends in “ss” or “gh”, add “ed”. c. In all other cases, inform the user that the verb may have an irregular past tense. Print each verb and its past tense. Try the following data: smile discuss confess declare laugh run cough teach buy
write a program in any language you like to determine the number of rabbits we would have in 24 months.  You can check the validity and correctness of your program by testing the count at month 3, 4, and 5 to see if it matches the pair count in the diagram.

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