• Home
  • Textbooks
  • Starting out with C++: From Control Structures through Objects
  • Introduction to Computers and Programming

Starting out with C++: From Control Structures through Objects

Tony Gaddis

Chapter 1

Introduction to Computers and Programming - all with Video Answers

Educators


Chapter Questions

01:12

Problem 1

Both main memory and secondary storage are types of memory. Describe the difference between the two.

Hubert Agamasu
Hubert Agamasu
Numerade Educator

Problem 2

What is the difference between system software and application software?

Check back soon!

Problem 3

What type of software controls the internal operations of the computer's hardware?

Check back soon!

Problem 4

Why must programs written in a high-level language be translated into machine language before they can be run?

Check back soon!

Problem 5

Why is it easier to write a program in a high-level language than in machine language?

Check back soon!

Problem 6

Explain the difference between an object file and an executable file.

Check back soon!
03:15

Problem 7

What is the difference between a syntax error and a logical error?

Mayank Tripathi
Mayank Tripathi
Numerade Educator

Problem 8

Computers can do many different jobs because they can be ________

Check back soon!

Problem 9

The job of the ________ is to fetch instructions, carry out the operations commanded by the instructions, and produce some outcome or resultant information.

Check back soon!

Problem 10

Internally, the CPU consists of the ________ and the ________

Check back soon!

Problem 11

$\mathrm{A}(\mathrm{n})$ ________ is an example of a secondary storage device.

Check back soon!

Problem 12

The two general categories of software are ________ and ________

Check back soon!

Problem 13

A program is a set of ________

Check back soon!

Problem 14

Since computers can't be programmed in natural human language, algorithms must be written in a(n) ________ language.

Check back soon!
View

Problem 15

________ is the only language computers really process.

Emily Himsel
Emily Himsel
Numerade Educator

Problem 16

________ languages are close to the level of humans in terms of readability.

Check back soon!

Problem 17

________ languages are close to the level of the computer.

Check back soon!

Problem 18

A program's ability to run on several different types of computer systems is called ________

Check back soon!
02:09

Problem 19

Words that have special meaning in a programming language are called ________

Vishal Sharma
Vishal Sharma
Numerade Educator
02:09

Problem 20

Words or names defined by the programmer are called ________

Vishal Sharma
Vishal Sharma
Numerade Educator

Problem 21

________ are characters or symbols that perform operations on one or more operands.

Check back soon!

Problem 22

________ characters or symbols mark the beginning or end of programming statements, or separate items in a list.

Check back soon!

Problem 23

The rules that must be followed when constructing a program are called ________

Check back soon!

Problem 24

$\mathrm{A}(\mathrm{n})$ ________ is a named storage location.

Check back soon!

Problem 25

A variable must be ________ before it can be used in a program.

Check back soon!

Problem 26

The three primary activities of a program are ________ , ________, and ________

Check back soon!

Problem 27

________ is information a program gathers from the outside world.

Check back soon!

Problem 28

________is information a program sends to the outside world.

Check back soon!

Problem 29

$\mathrm{A}(\mathrm{n})$ ________ is a diagram that graphically illustrates the structure of a program.

Check back soon!
01:56

Problem 30

Available Credit

The following steps should be followed in a program that calculates a customer's available credit:
1. Display the message "Enter the customer's maximum credit."
2. Wait for the user to enter the customer's maximum credit.
3. Display the message "Enter the amount of credit used by the customer."
4. Wait for the user to enter the customer's credit used.
5. Subtract the used credit from the maximum credit to get the customer's available credit.
6. Display a message that shows the customer's available credit.

Patina Herring
Patina Herring
Numerade Educator
View

Problem 31

Sales Tax

Design a hierarchy chart or flowchart for a program that calculates the total of a retail sale. The program should ask the user for:
- The retail price of the item being purchased
- The sales tax rate

Once these items have been entered, the program should calculate and display:
- The sales tax for the purchase
- The total of the sale

Emily Himsel
Emily Himsel
Numerade Educator
View

Problem 32

Account Balance

Design a hierarchy chart or flowchart for a program that calculates the current balance in a savings account. The program must ask the user for:
- The starting balance
- The total dollar amount of deposits made
- The total dollar amount of withdrawals made
- The monthly interest rate

Once the program calculates the current balance, it should be displayed on the screen.

Emily Himsel
Emily Himsel
Numerade Educator

Problem 33

The variable $x$ starts with the value 0 . The variable $y$ starts with the value 5 . Add 1 to $x$.
Add 1 to $y$.
Add $x$ and $y$, and store the result in $y$. Display the value in $y$ on the screen.

Check back soon!

Problem 34

The variable j starts with the value 10 . The variable k starts with the value 2 . The variable 1 starts with the value 4 . Store the value of $j$ times $k$ in $j$.
Store the value of $k$ times 1 in 1.
Add j and 1 , and store the result in k . Display the value in k on the screen.

Check back soon!

Problem 35

The variable a starts with the value 1 . The variable b starts with the value 10 . The variable c starts with the value 100. The variable $x$ starts with the value 0 . Store the value of $c$ times 3 in $x$.
Add the value of $b$ times 6 to the value already in $x$. Add the value of a times 5 to the value already in $x$. Display the value in $x$ on the screen.

Check back soon!
02:23

Problem 36

The following pseudocode algorithm has an error. The program is supposed to ask the user for the length and width of a rectangular room, then display the room's area. The program must multiply the width by the length in order to determine the area. Find the error.
area $=$ width $\times$ length.
Display "What is the room's width?".
Input width.
Display "What is the room's length?".
Input length.
Display area.

Akash M
Akash M
Numerade Educator