Starting Out with Python (4th Edition)
4th Edition
ISBN: 9780134444321
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 2.3, Problem 7CP
Write a statement that displays your name.
Expert Solution & Answer
Learn your wayIncludes step-by-step video
schedule01:57
Students have asked these similar questions
Q: what is the left side of the following
expression: xOy1?
Program Purpose - Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four categories:
Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete's total yearly salary. Lawyers - 10%, Personal Assistants - 3%,
Agents - 7%, and Trainers - 5% .
Prompt the user to enter the athlete's salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of
the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based
on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how
much each is being paid, the total amount the athlete paid, and how much the athlete has left.
Evaluate the following expression: (14/2 + 3 -1
Chapter 2 Solutions
Starting Out with Python (4th 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.8 - How do you suppress the print functions ending...Ch. 2.8 - How can you change the character that is...Ch. 2.8 - Prob. 24CPCh. 2.8 - Prob. 25CPCh. 2.8 - What does the statement print (format (65.4321,...Ch. 2.8 - What does the statement print (format (987654.129,...Ch. 2.9 - What are three advantages of using named...Ch. 2.9 - Write a Python statement that defines a named...Ch. 2.10 - Prob. 30CPCh. 2.10 - Prob. 31CPCh. 2.10 - Prob. 32CPCh. 2.10 - Prob. 33CPCh. 2.10 - Prob. 34CPCh. 2.10 - Prob. 35CPCh. 2.10 - Prob. 36CPCh. 2.10 - Prob. 37CPCh. 2.10 - Prob. 38CPCh. 2.10 - Prob. 39CPCh. 2.10 - Prob. 40CPCh. 2.10 - Prob. 41CPCh. 2.10 - Prob. 42CPCh. 2.10 - Prob. 43CPCh. 2.10 - Prob. 44CPCh. 2.10 - Prob. 45CPCh. 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 - A magic number is _______. a. a number that is...Ch. 2 - A _______ is a name that represents a value that...Ch. 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 - What is a magic number? Why are magic numbers...Ch. 2 - Assume a program uses the named constant PI to...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 - Write a turtle graphics statement that draws a...Ch. 2 - Write the turtle graphics statements to draw a...Ch. 2 - Write the turtle graphics statements to draw a...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...Ch. 2 - Planting Grapevines A vineyard owner is planting...Ch. 2 - Compound Interest When a bank account pays...Ch. 2 - Turtle Graphics Drawings Use the turtle graphics...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Assume that both of the inputs in the following circuit are 1. Describe what would happen if the upper input we...
Computer Science: An Overview (12th Edition)
For each of the following statements on a DataOutputStream output, how many bytes are sent to the output? outpu...
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
True or False: To calculate the total number of iterations of a nested loop, add the number of iterations of al...
Starting Out with Java: Early Objects (6th Edition)
Male and Female Percentages Write a program that asks the user for the number of males and the number of female...
Starting Out with C++ from Control Structures to Objects (9th Edition)
Write a program that starts with the string variable first set to your first name and the string variable last ...
Absolute Java (6th Edition)
Interest Earned Assuming there are no deposits other than the original investment, the balance in a savings acc...
Starting Out with C++ from Control Structures to Objects (8th 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
- 1. Create a variable called NUMBER and assign the value 9 to it 2. Create an IF statement that will print out “the number is greater than 5” IF the NUMBERis greater than 5 3. Create an ELSE statement that will print out “the number is less than 5” if the number isless than 5 4. Test the code to make sure it works. Make sure to test a number greater than 8 andless than 8 5. Copy the code into the submission box or attach the code file to your submissionarrow_forwardQ7: When a user is asked to input one digit, how can you test to make sure that a user entered only one? Assuming the user's input is stored in a variable named, digit, write the code that displays an appropriate error message. NOTE: Be sure to test for positive and negative values.arrow_forwardThis code does not print anything. Would you please check the code again. Thank you.arrow_forward
- Q: Write a code that take three numbers as input on three textboxes, calculates the average of three numbers and display the finals result on text box.arrow_forwardPrint "userNum1 is negative." if userNum1 is less than 0. End with newline. Assign userNum2 with 4 if userNum2 is greater than 9. Otherwise, print "userNum2 is less than or equal to 9.". End with newline. C codearrow_forwardIndicate two button variables that may be utilised when the MessageBox function is invoked.arrow_forward
- Part (1): Write a Scilab code to calculate the surface area and volume for a cube, cuboid, cone, and cylinder. The user should specify the shape followed by the required dimension (ex. For cube input base, for cylinder input radius and height etc.......) Ask the user to enter the shape. • If the user entered any wrong shape other than mentioned above, display the message "Wrong Option" • Ask the user to enter the required dimensions. Ask the user to specify the required output (Surface area or volume). Display the specified output. Comment on each line in your code,arrow_forwardplease can you write the codearrow_forwardYou are required to write a code that requests the user to enter four integer numbers that represent: Study Major, Type of Study, Credit Hours, and Semester in this order. The correct accepted range for each of the four numbers is given below: Study Major: 0 for medical majors, 1 for engineering and IT, 2 for financial and administration, 3 for social and art, and 4 for other majors. Type of Study: 0 for Regular, 1 for Parallel, and 2 for International. • Credit Hours: an integer between 1 and 21. • Semester: 0 for Fall semester, 1 for Spring semester, and 2 for Summer semester. If the user enters any of the four numbers outside its correct range, the program must output Invalid. Otherwise, the program outputs the sum of the tuition fees and all other miscellaneous fees for the user. The tuition fees per credit hour for each study major and type of study are given in the table below. Notice that the tuition fees for the Regular and Parallel systems are given in Jordanin dinar (JD),…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License