1. Write a program called pymath that: (15 points) a. In a comment on the first...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a program called pymath that: (15 points) a. In a comment on the first line gives your full name (first and last). b. Calculates a variable called w that is equal to 15 - 3. c. Prints out a statement that "The value of w is [whatever].". i. If this isn't already clear, rather than printing "[whatever]", the above statement should print out the actual value of w. Do this same thing for x, y, and z below. ii. Use placeholder syntax to insert your variable value into the print statement. d. Calculates a variable called x that is equal to 6 times the sum of 3 and 5. e. Prints out a statement that "The value of x is [whatever].". i. Use placeholder syntax to insert your variable value into the print statement. f. Calculates a variable called y that is equal to the remainder of 843 divided by 7. g. Prints out a statement that "The value of y is [whatever]." i. Use placeholder syntax to insert your variable value into the print statement. h. Calculates a variable called z that is equal to the square root of the product of 12 times 6. i. Prints out a statement that "The value of z is [whatever]!". j. Use placeholder syntax to insert your variable value into the print statement. 1. Write a program called pymath that: (15 points) a. In a comment on the first line gives your full name (first and last). b. Calculates a variable called w that is equal to 15 - 3. c. Prints out a statement that "The value of w is [whatever].". i. If this isn't already clear, rather than printing "[whatever]", the above statement should print out the actual value of w. Do this same thing for x, y, and z below. ii. Use placeholder syntax to insert your variable value into the print statement. d. Calculates a variable called x that is equal to 6 times the sum of 3 and 5. e. Prints out a statement that "The value of x is [whatever].". i. Use placeholder syntax to insert your variable value into the print statement. f. Calculates a variable called y that is equal to the remainder of 843 divided by 7. g. Prints out a statement that "The value of y is [whatever]." i. Use placeholder syntax to insert your variable value into the print statement. h. Calculates a variable called z that is equal to the square root of the product of 12 times 6. i. Prints out a statement that "The value of z is [whatever]!". j. Use placeholder syntax to insert your variable value into the print statement.
Expert Answer:
Answer rating: 100% (QA)
mainpy Us GDB 1 Full Name Mansi Bhandari Calculate the value of w 3 ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A restaurant manager surveys her customers after their dining experience. Customers rate their experience as Excellent (E), Good (G), Fair (F), or Poor (P). The following table records the experience...
-
1A. If personal income is the currently the same in two countries "Country Alpha" and "Country Beta," but Country Alpha has a faster annual growth rate in personal incomes, which country will have a...
-
Write a program called ezstart.py that: a. In a comment on the first line gives your full name (first and last). b. Creates a string variable called myname that's equal to your name. c. Creates an...
-
In Problems 1158, perform the indicated operation, and write each expression in the standard form a + bi. 2 + 3i 1-i
-
Smarties, the sugar candy that is packaged in rolls of 15 small candies, come in six flavors: white (orange crme), yellow (pineapple), pink (cherry), green (strawberry), purple (grape), and orange...
-
In this chapter, we learned about several conflict-handling intentions. Each of these intentions involved two dimensionassertiveness (the degree to which one party attempts to satisfy his or her own...
-
XYZ Corporation has \($500\) million in zero coupon debt outstanding, due in five years. The firm had earnings before interest and taxes of \($40\) million in the most recent year (the tax rate is...
-
Vincent Yarwood practices medicine under the business title Vincent Yarwood, M.D. During July, the medical practice completed the following transactions: Jul. 1 Yarwood contributed $68,000 cash to...
-
Michael Jordan (birthdate March 1, 1975) is a single taxpayer. Michael's earnings and withholdings as a departmental manager for 2020 are reported on his Form W-2:Michael's other income includes...
-
Two flow control loops axe shown in the drawing. Indicate whether each system is either a feedback or a feed-forward control system. Justify your answer. It can be assumed that the distance between...
-
You have been asked to retrospectively sample records for a study for one of your pediatricians. She wants to examine a possible correlation between a child's immunization status (up-to-date or not)...
-
In 2010, the City of Coyote received a \($320,000\) cash grant from the state to stop air pollution. Assume that although a special revenue fund could have been set up, the money remained in the...
-
The city maintains a landfill that has been recorded within its parks. The landfill generated program revenues of \($4,000\) in Year 4 and cash expenses of \($15,000\). It also paid \($3,000\) cash...
-
Suppose that people consume only three goods, as shown in this table: a. What is the percentage change in the price of each of the three goods? What is the percentage change in the overall price...
-
Fenicci e Fantocca forecast demand for components to average 18 a day over a 200 day working year. Any shortages disrupt production and give very high costs. The holding cost for the component is...
-
The City of Coyote mailed property tax bills for 2011 to its citizens during August 2010. Payments could be made early to receive a discount. The levy becomes legally enforceable on February 15,...
-
Risk-adjusted discount rates-Basic Country Wallpapers is considering investing in one of three mutually exclusive projects, E, F, and G. The firm's cost of capital, r, is 15.3%, and the risk-free...
-
1. Using the information from Problem 16-4B, prepare a statement of cash flows for Lim Garden Supplies Inc. using the direct method of presenting cash flows from operating activities. 2. How does Lim...
-
Brian and Kim have a 12-year-old child, Stan. For 2012, Brian and Kim have taxable income of $52,000, and Stan has nonqualifying dividend income of $4,500 and investment expenses of $250. No election...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1 and 2. On September 1, Irene opened a retail store that specializes in sports car...
-
Jason and Mary are married taxpayers in 2012. They are both under age 65 and in good health. For this tax year, they have a total of $41,000 in wages and $500 in interest income. Jason and Mary's...
-
Investigative accounting activities in the FBI grew dramatically during what 20th century. conflict?
-
Which type of auditor ferrets out deception in financial statements?
-
Who was probably the first person to coin the phrase forensic accounting in print?
Study smarter with the SolutionInn App