MyProgrammingLab - For Gaddis: Starting Out with C++ From Control Structures through Objects
MyProgrammingLab - For Gaddis: Starting Out with C++ From Control Structures through Objects
15th Edition
ISBN: 9780133780611
Author: Pearson
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 1.7, Problem 1.30CP

Explanation of Solution

Runtime Error:

A runtime error is an error which is occurred while the program is running.

  • These errors are usually referred as logical error. It requires the sample input to find whether the sample output is correct or not.
  • If it is not correct, then there may be an error which is logically present in the coding.

For example consider the below source code:

Program:

//Include required header files

#include <iostream>

using namespace std;

//Main Function

...

Blurred answer
Students have asked these similar questions
What exactly is a runtime error?
The major way to protect from runtime errors is to use _____ and _____ blocks.
Give examples of syntax errors, runtime errors, and logic errors.

Chapter 1 Solutions

MyProgrammingLab - For Gaddis: Starting Out with C++ From Control Structures through Objects

Ch. 1.3 - What is an algorithm?Ch. 1.3 - Why were computer programming languages invented?Ch. 1.3 - Prob. 1.13CPCh. 1.3 - Prob. 1.14CPCh. 1.3 - Prob. 1.15CPCh. 1.3 - Prob. 1.16CPCh. 1.3 - Prob. 1.17CPCh. 1.5 - Prob. 1.18CPCh. 1.5 - Prob. 1.19CPCh. 1.5 - Describe the difference between a program line and...Ch. 1.5 - Prob. 1.21CPCh. 1.5 - What happens to a variables current contents when...Ch. 1.5 - What must take place in a program before a...Ch. 1.5 - Prob. 1.24CPCh. 1.7 - What four items should you identify when defining...Ch. 1.7 - Prob. 1.26CPCh. 1.7 - What is a hierarchy chart?Ch. 1.7 - Prob. 1.28CPCh. 1.7 - Describe what a compiler does with a programs...Ch. 1.7 - Prob. 1.30CPCh. 1.7 - Is a syntax error (such as misspelling a key word)...Ch. 1.7 - What is the purpose of testing a program with...Ch. 1.7 - Briefly describe the difference between procedural...Ch. 1 - Prob. 1RQECh. 1 - What is the difference between system software and...Ch. 1 - Prob. 3RQECh. 1 - Why must programs written in a high-level language...Ch. 1 - Why is it easier to write a program in a...Ch. 1 - Prob. 6RQECh. 1 - Prob. 7RQECh. 1 - Prob. 8RQECh. 1 - The job of the ________ is to fetch instructions,...Ch. 1 - Internally, the CPU consists of the _______ and...Ch. 1 - Prob. 11RQECh. 1 - The two general categories of software are...Ch. 1 - A program is a set of _______.Ch. 1 - Prob. 14RQECh. 1 - _______ is the only language computers really...Ch. 1 - __________ languages are close to the level of...Ch. 1 - ________ languages are close to the level of the...Ch. 1 - Prob. 18RQECh. 1 - Words that have special meaning in a programming...Ch. 1 - Prob. 20RQECh. 1 - Prob. 21RQECh. 1 - __________ characters or symbols mark thebeginning...Ch. 1 - Prob. 23RQECh. 1 - Prob. 24RQECh. 1 - Prob. 25RQECh. 1 - Prob. 26RQECh. 1 - __________ is information a program gathers from...Ch. 1 - __________is information a program sends to the...Ch. 1 - Prob. 29RQECh. 1 - Available Credit The following steps should be...Ch. 1 - Sales Tax Design a hierarchy chart or flowchart...Ch. 1 - Account Balance Design a hierarchy chart or...Ch. 1 - The variable x starts with the value 0. The...Ch. 1 - The variable j starts with the value 10. The...Ch. 1 - The variable a starts with the value 1. The...Ch. 1 - Find the Error 36. The following pseudocode...