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...
-
The balance in the unearned fees account, before adjustment at the end of the year, is $900,000. Of these fees, $775,000 have been earned. In addition, $289,500 of fees have been earned but not...
-
Compare and contrast the use of FISH and phylochips for enumerating microbial cells in natural environments. What advantages and limitations do each of these methods have?
-
Internal and External Audit. Khaled Al-Zubari, an executive recruiter, is a member of the Board of Directors of Mantilla Corporation. At a recent board meeting, called to discuss the financial plan...
-
Hendi Company has these comparative balance sheet data: Additional information for 2012:1. Net income was $25,000.2. Sales on account were $375,000. Sales returns and allowances amounted to...
-
Given the following information and the assumption that he earns 1 2 % annually on all of his other investments, what is the present value of option 2 ? ( Be sure to include all necessary information...
-
Based on the following transactions, calculate the revenues, expenses, net income that would be reported (a) On the cash basis and (b) On the accrual basis i. Purchased inventory with a cost of...
-
Question 17 of 50 1 Points A company has fixed operating costs of R15 000.Products are sold at R15 per unit and the variable cost per unit is R6. Calculate the company's breakeven point in rand. OA....
-
1- Financial ratio analysis is conducted by three main groups of analysts: credit analysts, stock analysts, and managers. What is the primary emphasis of each group, and how would that emphasis...
-
10. For the following loan, make a table showing the amount of each monthly payment that goes toward principal and in for the first three months of the loan. A home mortgage of $144,000 with a fixed...
-
DOIT Center's Standard and Actual costs per unit are as follows: Standard cost were: Direct labour 48,250 hours at $6.50 per hour Direct Materials 20,000 kilograms at $10 per kilogram Actual...
-
Consider the following norms in the United States: flushing the toilet after using it, saying hello when you answer the phone, respecting people's personal space, and paying for things you buy at the...
-
Norwood Corporation is considering changing its method of inventory valuation from absorption costing to direct costing and engaged you to determine the effect of the proposed change on the 2018...
-
2. (Extraneous Solutions) For each equation below, substitute the solutions back into the equation to determine which one is the extraneous solution. a) x+5=x-1 x=-1 or x=4 b) 3x-2+2 = x x = 1 or x =...
-
Design an experiment to demonstrate that RNA transcripts are synthesized in the nucleus of eukaryotes and are subsequently transported to the cytoplasm.
-
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...
-
NOPAT is the amount of net income a company would generate if it had no debt and held no financial assets. NOPAT is a better measure of the performance of a company's operations because debt lowers...
-
Free cash flow is the cash flow actually available for distribution to investors after the company has made all the investments in fixed assets and working capital necessary to sustain ongoing...
-
If the business were organized as a partnership or a proprietorship, its income could be taken out by the owners without being subject to double taxation. Also, if you expected to have losses for a...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App