Starting Out With C++: Early Objects (10th Edition)
Starting Out With C++: Early Objects (10th Edition)
10th Edition
ISBN: 9780135235003
Author: Tony Gaddis, Judy Walters, Godfrey Muganda
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 1, Problem 37RQE

Find the Error

33. The following pseudocode algorithm has an error. It is supposed to use values input for a rectangular room’s length and width to calculate and display its area. Find the error.

area = width × length.

Display "What is the room’s width?".

Input width.

Display "What is the room’s length?".

Input length.

Display area.

Blurred answer
Students have asked these similar questions
The following pseudocode algorithm has an error. It is supposed to use values input for a rectangular room’s length and width to calculate and display its area. Find the error. area = width × length. Display "What is the room's width?". Input width. Display "What is the room's length?". Input length. Display area.
Find the error in the pseudocode example listed below:   Declare real lowest, highest, average      (this is not the error) Display "Enter the lowest score" Input lowest Display "Enter the highest score" Input highest Set average = lowest + highest / 2 Display "The average is ", average, "."
Calculator Challange  Python Coding Create a simple calculator that takes in TWO numbers from the user and then asks the user to select if they want to ADD, SUBTRACT, MULTIPLY or DIVIDE to get the answer. I have coded... print("input whole numbers please, no decimals")again=""while again!="N":first=int(input("What is the first number?"))last=int(input("What is the last number?"))#let user pick the operation, assign numbers to the operationsoperation=int(input("Would you like to 1) add, 2)subtract, 3)multiply, or 4) divide?"))if operation==1:answer=first+lastelif operation==2:answer=first-lastelif operation ==3:answer=first*lastelif operation == 4:answer=first/lastelse:print("You did something wrong, try again.")print("The answer: %s"%(answer))again=str(input("Would you like to go again? Y/N")).upper()same=str(input("Would you like to use the same two numbers? Y/N")).upper()while same=="Y":operation = int(input("Would you like to 1) add, 2)subtract, 3)multiply, or 4) divide?"))if…

Chapter 1 Solutions

Starting Out With C++: Early Objects (10th Edition)

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 - Describe the difference between a key word and a...Ch. 1.5 - Prob. 1.19CPCh. 1.5 - Prob. 1.20CPCh. 1.5 - Prob. 1.21CPCh. 1.5 - Prob. 1.22CPCh. 1.5 - What must take place in a program before a...Ch. 1.5 - Prob. 1.24CPCh. 1.6 - What four items should you identify when defining...Ch. 1.6 - Prob. 1.26CPCh. 1.6 - Prob. 1.27CPCh. 1.6 - What is pseudocode?Ch. 1.6 - What is the difference between high-level...Ch. 1.6 - Describe what a compiler does with a programs...Ch. 1.6 - Prob. 1.31CPCh. 1.6 - Prob. 1.32CPCh. 1.6 - Prob. 1.33CPCh. 1 - Computers can do many different jobs because they...Ch. 1 - The job of the _____ is to fetch instructions,...Ch. 1 - Internally, the CPU consists of the _____ and the...Ch. 1 - Prob. 4RQECh. 1 - The two general categories of software are _____...Ch. 1 - Prob. 6RQECh. 1 - Since computers cant be programmed in natural...Ch. 1 - _____is the only language computers really...Ch. 1 - Prob. 9RQECh. 1 - Prob. 10RQECh. 1 - A programs ability to run on several different...Ch. 1 - Words that have special meaning in a programming...Ch. 1 - Prob. 13RQECh. 1 - _____ are characters or symbols that perform...Ch. 1 - _____ characters or symbols mark the beginning or...Ch. 1 - Prob. 16RQECh. 1 - A(n) _____ is a named storage location.Ch. 1 - A variable must be _____ before it can be used in...Ch. 1 - The three primary activities of a program are...Ch. 1 - _____ is information a program gathers from the...Ch. 1 - _____ is information a program sends to the...Ch. 1 - A(n) _____ is a diagram that graphically...Ch. 1 - Prob. 23RQECh. 1 - Prob. 24RQECh. 1 - Prob. 28RQECh. 1 - Account Balance Write high-level and detailed...Ch. 1 - Sales Tax Write high-level and detailed pseudocode...Ch. 1 - The variable sum starts with the value 0. Add 10...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 33. The following pseudocode...Ch. 1 - Suppose one of your friends, who paints the...Ch. 1 - Candy Bar Sales Using Program 1-1 as an example,...Ch. 1 - Baseball Costs Using Program 1-1 as an example,...Ch. 1 - Flower Garden Write a program that calculates how...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
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
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Introduction to Computers; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=-AP1nNK3bRs;License: Standard YouTube License, CC-BY
Computers for Beginners: Introduction; Author: Carson City Library;https://www.youtube.com/watch?v=jH8pgGfG9HY;License: Standard Youtube License