Starting Out with Python (3rd Edition)
3rd Edition
ISBN: 9780133582734
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 3MC
A(n) __________ is a set of well-defined logical steps that must be taken to perform a task.
a. logarithm
b. plan of action
c. logic schedule
d.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
29.
The first step in the problem-solving process is to _____.
a.
Plan the algorithm
b.
Analyze the problem
c.
Code the algorithm
d.
Evaluate and modify (if necessary) the program
A location in the computer’s memory that may contain different values at various times throughout the execution of a program is called a(n)________ .
A procedure for solving a problem in terms of the actions to be executed and the order in which the actions should be executed is called a(n)____________
Chapter 2 Solutions
Starting Out with Python (3rd Edition)
Ch. 2.1 - Who is a programmers customer?Ch. 2.1 - What is a software requirement?Ch. 2.1 - What is an algorithm?Ch. 2.1 - What is pseudocode?Ch. 2.1 - Prob. 5CPCh. 2.1 - Prob. 6CPCh. 2.3 - Write a statement that displays your name.Ch. 2.3 - Write a statement that displays the following...Ch. 2.3 - Write a statement that displays the following...Ch. 2.5 - Prob. 10CP
Ch. 2.5 - Which of the following are illegal variable names...Ch. 2.5 - Prob. 12CPCh. 2.5 - Is the following assignment statement valid or...Ch. 2.5 - Prob. 14CPCh. 2.5 - Look at the following assignment statements:...Ch. 2.5 - What will be displayed by the following program?...Ch. 2.6 - You need the user of a program to enter a...Ch. 2.6 - Prob. 18CPCh. 2.7 - Prob. 19CPCh. 2.7 - Prob. 20CPCh. 2.7 - Prob. 21CPCh. 2 - A ______ error does not prevent the program from...Ch. 2 - Prob. 2MCCh. 2 - A(n) __________ is a set of well-defined logical...Ch. 2 - An Informal language that has no syntax rules and...Ch. 2 - A _______ is a diagram that graphically depicts...Ch. 2 - A ______ is a sequence of characters. a. char...Ch. 2 - Prob. 7MCCh. 2 - Prob. 8MCCh. 2 - A string literal in Python must be enclosed in...Ch. 2 - Prob. 10MCCh. 2 - A(n) __________ makes a variable reference a value...Ch. 2 - This symbol marks the beginning of a comment in...Ch. 2 - Which of the following statements will cause an...Ch. 2 - In the expression 12 + 7, the values on the right...Ch. 2 - This operator performs integer division. a. // b....Ch. 2 - This is an operator that raises a number to a...Ch. 2 - This operator performs division, but instead of...Ch. 2 - Prob. 18MCCh. 2 - Which built-in function can be used to read input...Ch. 2 - Prob. 20MCCh. 2 - Programmers must be careful not to make syntax...Ch. 2 - In a math expression, multiplication and division...Ch. 2 - Variable names can have spaces in them.Ch. 2 - In Python, the first character of a variable name...Ch. 2 - If you print a variable that has not been assigned...Ch. 2 - What does a professional programmer usually do...Ch. 2 - What is pseudocode?Ch. 2 - Computer programs typically perform what three...Ch. 2 - If a math expression adds a float to an int, what...Ch. 2 - What is the difference between floating-point...Ch. 2 - Write Python code that prompts the user to enter...Ch. 2 - Write Python code that prompts the user to enter...Ch. 2 - Write assignment statements that perform the...Ch. 2 - Assume the variables result, w, x, y, and z are...Ch. 2 - Write a Python statement that assigns the sum of...Ch. 2 - Write a Python statement that subtracts the...Ch. 2 - Write a Python statement that multiplies the...Ch. 2 - Prob. 8AWCh. 2 - What would the following display? num = 99 num = 5...Ch. 2 - Assume the variable sales references a float...Ch. 2 - Assume the following statement has been executed:...Ch. 2 - What will the following statement display?...Ch. 2 - Personal Information Write a program that displays...Ch. 2 - Sales Prediction A company has determined that its...Ch. 2 - Land Calculation One acre of land is equivalent to...Ch. 2 - Total Purchase A customer in a store is purchasing...Ch. 2 - Distance Traveled Assuming there are no accidents...Ch. 2 - Sales Tax Write a program that will ask the user...Ch. 2 - Miles-per-Gallon A car's miles-per-gallon (MPG)...Ch. 2 - Tip, Tax, and Total Write a program that...Ch. 2 - Celsius to Fahrenheit Temperature Converter Write...Ch. 2 - Ingredient Adjuster A cookie recipe calls for the...Ch. 2 - Male and Female Percentages Write a program that...Ch. 2 - Stock Transaction Program Last month, Joe...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Class Y is a friend of class X, which means the member functions of class Y have access to the private members ...
Starting Out with C++ from Control Structures to Objects (8th Edition)
We have defined four binary logical connectives. a. Are there any others that might be useful? b. How many bina...
Artificial Intelligence: A Modern Approach
The spreadsheet in Microsoft Excel file Ch01Ex01_U10e.xlsx contains records of employee activity on special pro...
Using MIS (10th Edition)
Identify and fix the errors in the following code: 1. public class Test { 2. public void main(String[] args) { ...
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
When a program has a lot of items for the user to select from, why should you avoid displaying all of the items...
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
In Exercises 55 through 60, find the value of the given function where a and b are numeric variables of type Do...
Introduction to Programming Using Visual Basic (10th Edition)
Knowledge Booster
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
- Prim’s algorithm is also known as __________a) Dijkstra–Scholten algorithmb) Borůvka’s algorithmc) Floyd–Warshall algorithmd) DJP Algorithmarrow_forwardA __________error does not prevent the program from running but causes it to produce incorrect results.arrow_forwardA computer program is a __________ implemented with a computer. a. problem b. solution c. diagram d. pseudocodearrow_forward
- Which of the following is the third step in the problem-solving process? a. Analyze the problem b. Code the algorithm into a program c. Desk-check the algorithm d. Plan the algorithmarrow_forward12. The step-by-step instructions that solve a problem are called _____. a. A list b. A plan c. An algorithm d. A sequential structurearrow_forwardProgrammers refer to the items needed to reach a problem’s goal as the .a. input b. output c. processing d. purposearrow_forward
- Computer Science PROBLEM SOLVING 1. Develop an algorithm that accepts as input the names and, hours worked at a basic rate of $330 of the five house keepers. If the hours worked is greater than 40 then overtime is calculated at time and a half. The pseudeocode should calculate and display the name and gross pay for each housekeeper. 2. Design and execute a trace table for the algorithm you created. PROGRAM IMPLEMENTATION Use Pascal programming language to implement the algorithm.arrow_forwardDraw hierarchy charts or flowcharts that depict the programs. Design a hierarchy chart or flowchart for a program that calculates the total of a retailsale. The program should ask the user for:- The retail price of the item bei ng purchased- The sa les tax raceOnce th ese items have been entered, the program should calculate and di splay:- The sa les tax for the purchase- The coral of the salearrow_forward119. Flowchart development is considered to be a. Time efficient task b. Time consuming task c. Simple and plain d. Expensive taskarrow_forward
- (Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.arrow_forward18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.) (9)arrow_forward1. Mark the following statements as true or false. a. The calculating device called the Pascaline could calculate sums up to eight figures long. (1) b. All programs must be loaded into the CPU before they can be executed and all data must be loaded into main memory before it can be manipulated. (2) c. Main memory is an ordered sequence of cells and each cell has a random location in main memory. (2) d. The program that loads first when you turn on your computer is called the operating system. (2) e. Analog signals represent information with a sequence of 0s and 1s. (3) f. The machine language is a sequence of 0s and 1s. (3) g. A Binary code is a sequence of 0s and 1s. (3) h. A sequence of eight bits is called a byte. (3) i. One GB is MB. (3) j. In ASCII, A is the 65th character. (3) k. The number system used by a computer is base 2. (3) l. An assembler translates the assembly language instructions into machine language. (4) m. A compiler translates the source program into an object program. n. In a program, statements that begin with the symbol are called preprocessor directives (7) o. An object program is the machine language version of a high-level language program. (9) p. All logical errors, such as division by 0, are reported by the compiler. (9) q. In object-oriented design (OOD), a program is a collection of interacting objects. (10) r. An object consists of data and operations on that data. (10) s. ISO stands for International Organization for Standardization. (11)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Enhanced Discovering Computers 2017 (Shelly Cashm...Computer ScienceISBN:9781305657458Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. CampbellPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License