A gross is a quantity equal to 12 dozen, or 144. Write a program named gross.py...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A gross is a quantity equal to 12 dozen, or 144. Write a program named gross.py that takes integer input from the user using the input function then prints out a number representing that many gross. For example, if the user enters 2, then the output should be 288. tample, if the The following shows an example of what the shell interaction should look like when your program is run twice in Thonny. In both cases, the first number is entered by the user, and the second number is printed by the program. >>> %Run gross.py 2 288 >>> %Run gross.py 100 14400 Be careful! input() will always return a string value. If we need an integer, we can use the int() function to perform the conversion. X = input () # wrong! x = int (input ()) # correct! A gross is a quantity equal to 12 dozen, or 144. Write a program named gross.py that takes integer input from the user using the input function then prints out a number representing that many gross. For example, if the user enters 2, then the output should be 288. tample, if the The following shows an example of what the shell interaction should look like when your program is run twice in Thonny. In both cases, the first number is entered by the user, and the second number is printed by the program. >>> %Run gross.py 2 288 >>> %Run gross.py 100 14400 Be careful! input() will always return a string value. If we need an integer, we can use the int() function to perform the conversion. X = input () # wrong! x = int (input ()) # correct!
Expert Answer:
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these programming questions
-
What operates on the pleasure principle and constantly seeks immediate and unrestrained satisfaction?
-
Given the info below answer the question Inventory 12/31/25 $60,100 Cost of Goods Sold $221,463 Common Stock 74,510 Selling Expenses 15,783 Retained Earnings 45,810 Administrative Expenses 37,696...
-
What are the SDGs ? What is their history? How do they support global sustainability agenda?
-
The Kingdom of Bhutan measures the happiness of its population, and government policy is formulated to increase Bhutans GNH (gross national happiness). Read about how the GNH is measured (try...
-
A cylinder contains ethylene, C2H4, at 222.6 lbf/in 2, 8 F. It is now compressed isothermally in a reversible process to 742 lbf/in 2. Find the specific work and heat transfer.
-
Three small spheres, A, B and C, of masses m, km and 6m respectively, have the same radius. They are at rest on a smooth horizontal surface, in a straight line with B between A and C. The coefficient...
-
Describe surrogacy and the legal and ethical issues that can arise.
-
Cochrane, Inc., is considering a new three-year expansion project that requires an initial fixed asset investment of $2.7 million. The fixed asset will be depreciated straight-line to zero over its...
-
Venty that Rolle's Theorem can be applied to the function f(x)=23-11z + 36z - 36 on the interval [2,6] Then find all values of c in the interval such that f' (c) = 0. Enter the exact answers in...
-
Forecasting with the Parsimonious Method and Estimating Share Value Using the ROPI Model Following are income statements and balance sheets for Cisco Systems. Cisco Systems Consolidated Statements of...
-
Cards are drawn in succession without replacement from an ordinary deck. Find the probability of the event A1 A2 A3, where A1 is the event that the first card is RED ace, A2 is the event that the...
-
If Firm B had a 75% payout ratio but then lowered it to 25%, causing its growth rate to rise from 3% to 9%, would that action necessarily increase the price of its stock? Why or why not?
-
Write out the equation for free cash flows and explain it.
-
Fletcher Companys current stock price is $36.00, its last dividend was $2.40, and its required rate of return is 12%. If dividends are expected to grow at a constant rate, g, in the future, and if r...
-
Shome Industries retains and reinvests all its earnings. So, Shome does not pay any dividends, and it has no plans to pay dividends any time soon. A major pension fund is interested in purchasing...
-
Equilibrium price is $ ________; equilibrium quantity is ______.
-
Prove -X tan x = = cos (1+x), x = [0, 1] 2
-
Using (1) or (2), find L(f) if f(t) if equals: t cos 4t
-
For information security purposes, which of the following terms is used to describe the systems that use, store, and transmit information? a. Inventory b. Threats c. Controls d. Assets
-
True or False: The NIST Cybersecurity Framework has a total of four processes that are cyclical in nature.
-
Discuss how by using a known or previously unknown and newly discovered access mechanism, an attacker can gain access to a system or network resource through a back door. Point out that these doors...
-
When a car accelerates gradually (no squealing tires), is the friction between tires and road kinetic or static?
-
In Figure P10.18, all surfaces experience friction. Is the magnitude of the horizontal component of the force exerted by \(A\) on \(B\) greater than, equal to, or less than the magnitude of the...
-
You keep a chalkboard eraser pressed against the chalkboard by using your finger to exert a horizontal force on the back of the eraser. (a) Which type of force (call it force A) keeps the eraser from...
Study smarter with the SolutionInn App