Mylab Programming With Pearson Etext -- Access Code Card -- For Starting Out With Python
3rd Edition
ISBN: 9780133759112
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 2, Problem 8MC
Program Description Answer
A “user” is a hypothetical person because using a program the user can provide input to the program and test it using various test cases.
Hence, the correct answer is option “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Short notes placed in different parts of a program explaining how those parts of the programwork are called .1. comments2. reference manuals3. tutorials
4. external documentation
Instructions: Circle T if the statement is true, F if the statement is false, or write the best answer in the space provided.
A(n) _________'converts the source code of an application program into executable object code (machine language) one line at a time.
C++ Visual 2019
Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase:
The number of shares that Joe purchased was 1,000.
When Joe purchased the stock, he paid $45.50 per share.
Joe paid his stockbroker a commission that amounted to 2 percent of the amount he paid for the stock.
Two weeks later, Joe sold the stock. Here are the details of the sale:
The number of shres that Joe sold was 1,000.
He sold the stock for $56.90 per share.
He paid the stockbroker another commission that amounted to 2 percent of the amount he received for the stock.
Write a program that displays the following information:
The amount of money Joe paid for the stock.
The amount of commission Joe paid his broker when he bought the stock.
The amount that Joe sold the stock for.
The amount of commission Joe paid his broker when he sold the stock.
Display the amount of profit that Joe made after selling his stock and paying the two commissions to his broker. (If the…
Chapter 2 Solutions
Mylab Programming With Pearson Etext -- Access Code Card -- For Starting Out With Python
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...
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
- Instructions: Circle T if the statement is true, F if the statement is false, or write the best answer in the space provided. T F Most operating systems today use a graphical user interface.arrow_forwardWrite in Assembly Language Programming show code and submit output screenshot make it run with visual studio and other famous compilers. Q) write the programs in Assembly Language A) Write a program that calculates a car's gas mileage. The program should ask the user toenter the number of gallons of gas the car can hold and the number of miles it can bedriven on a full tank. It should then calculate and display the number of miles per gallonthe car gets.B. Write a program that asks the user to enter their monthly costs for each of the followinghousing-related expenses: rent or mortgage payment utilities phones cable The programshould then display the total monthly cost of these expenses and the total annual cost ofthese expenses.C. A bag of cookies holds 30 cookies. The calorie information on the bag claims that thereare 10 "servings" in the bag and that a serving equals 240 calories. Write a program thatasks the user to input how many cookies they actually ate and then reports how…arrow_forwardForgetting a semi-colon at the end of a statement or misspelling a certain command is an example of Select one: a. compile error b. logical error c. runtime error d. computer error It is an extremely fast computer, which can execute hundreds of millions of instructions per second. Select one: a. all of the choices b. minicomputer c. supercomputer d. mainframe computer Refers to a single user computer system having moderately powerful processor. Select one: a. mainframe computer b. PC c. minicomputer d. workstationarrow_forward
- Which of the following correctly describes the process of writing a computer program? writing instructions that are syntactically correct testing the program with a variety of inputs debugging the program when it doesn’t work as expected all the abovearrow_forwardprogram3_3.pyWrite a wholly creative quiz program that consists of three original questions that you make up according to the specifications below. Provide positive or negative feedback to the user immediately after each question is answered. The quiz doesn't have to be scored. One question should require user input of type int One question should require user input of type float One should require a string inputarrow_forwardQuestion * *** ************ ***** *** * Output. Seven lines of output as follows: The first consists of 3 spaces followed by a star. The second line consists of 2 spaces followed by a 3 stars. The third consists of one space followed by 5 stars, and the fourth consists just of 7 stars. The fifth line is identical to third, th sixth to the second and the seventh to the first. CLASS NAMES. Your program class should be called StarPattern My answer: public class StarPattern { publicstatic void main(String[] args) { System.out.println(" *"); System.out.println(" ***"); System.out.println(" *****"); System.out.println("*******"); System.out.println(" *****"); System.out.println(" ***"); System.out.println(" *"); } }arrow_forward
- Hello my name is Carlos and I am having trouble with getting my code assignment errors to be solved in visual studio like I have been tasked. Hever is my exercise and I am having a hard time fixing the errors to run through debug: Program Exercise: int main (void) { // Local Declarations a int; b float, double; c, d char; //Statements printf("The end of the program."); return 0; } //mainarrow_forwardin Python create a program that Must include Python comments for each of the items show below. Calculate a Percentage. For example, the discount percentage on a sale item.Use of 3 Constants. To be used for values that will not change throughout the life of the program. A Turtle Graphic Logo. This logo will be used to depict your fictitious company and should be something interesting and creative. Three (3) If-else Conditions. The usage of conditions is required and should be used to evaluate or make a decision on some kind of input. These can include the comparison of Strings or depict a nested conditional sequence. The Usage of at Least 2 Logical Operators2 While Loops. 1 For LoopAt Least 2 Functions (1 with at least 1 parameter)1 Instance of a List + Looping Through the Listarrow_forwardPhone Company charges for phone calls by distance (miles) and length of time (minutes) The cost of a call (in dollars) is calculated as 0.15 (length of time + 0.02 * distance). Design, write, test, and run a Python program using IDLE's script mode (NOT interactive mode). The program should calculate the cost of each of four phone calls and the total cost of all four phone calls. The program should be designed to request the times and distances from the program's user through the use of the keyboard. What is a user? The program's user is you when you are testing and running the program. The instructor will be the user when the program is checked. The output of your program should display the time, distance, and cost of each call. In addition, it should display the total cost of all four phone calls. Please do fast fastt...arrow_forward
- Instructions: Circle T if the statement is true, F if the statement is false, or write the best answer in the space provided. Benefits that are easy to quantify in dollars are called__________ benefits.arrow_forwardProgrammers refer to the items needed to reach a problem’s goal as the .a. input b. output c. processing d. purposearrow_forwardInstructions: Circle T if the statement is true, F if the statement is false, or write the best answer in the space provided. A(n)___________is a model of a system that is built during systems development.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage