Write a script which: 1. Uses the input function to get any number and store it...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a script which: 1. Uses the input function to get any number and store it in a variable named my_number 2. Create a new variable named calculation which equals my_number plus 9 3. Multiply calculation by 2 4. Subtract 4 from calculation 5. Divide calculation by 2 6. Subtract my number from calculation 7. Print calculation. This should match the output under Desired Output. Click Run to check your code Click Submit to subernit your code to your instructor ▶ Run 4 5 6 7 8 9 Redo 10 11 12 13 14 15 16 17 18 19 Save 1 #1. Ask users to enter any nurber 2 # assign it to the variable /my_number] Submit #2. Create a new variable called #/calculation that is equal to #/my_number/ plus 9- calculation my numberi 3. Multiply /calculation by 2 #4. Subtract 4 from /calculation/ 5. Divide /calculation by 2 6. Subtract /my_mber/ from #/calculation/ 7. Print the resulting /calculation/ Your Output: Desired Output: 7 # 2. Create a new variable called # /calculation/ that is equal to #/my_number/ plus 9 calculation = my_number+9 # 3. Multiply /calculation/ by 2 # 4. Subtract 4 from/calculation/ # 5. Divide /calculation/ by 2 # 6. Subtract/my_number/ from # /calculation/ # 7. Print the resulting /calculation/ Write a script which: 1. Uses the input function to get any number and store it in a variable named my_number 2. Create a new variable named calculation which equals my_number plus 9 3. Multiply calculation by 2 4. Subtract 4 from calculation 5. Divide calculation by 2 6. Subtract my number from calculation 7. Print calculation. This should match the output under Desired Output. Click Run to check your code Click Submit to subernit your code to your instructor ▶ Run 4 5 6 7 8 9 Redo 10 11 12 13 14 15 16 17 18 19 Save 1 #1. Ask users to enter any nurber 2 # assign it to the variable /my_number] Submit #2. Create a new variable called #/calculation that is equal to #/my_number/ plus 9- calculation my numberi 3. Multiply /calculation by 2 #4. Subtract 4 from /calculation/ 5. Divide /calculation by 2 6. Subtract /my_mber/ from #/calculation/ 7. Print the resulting /calculation/ Your Output: Desired Output: 7 # 2. Create a new variable called # /calculation/ that is equal to #/my_number/ plus 9 calculation = my_number+9 # 3. Multiply /calculation/ by 2 # 4. Subtract 4 from/calculation/ # 5. Divide /calculation/ by 2 # 6. Subtract/my_number/ from # /calculation/ # 7. Print the resulting /calculation/
Expert 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
-
There are many different types of business messages forms, and each has its own unique traits and purpose. Every business communication situation requires analysis to determine which type of message...
-
The Taylor polynomial for sin(x) for a near 0 to order 5 is 1 1 sin(x) = x - + -x +0(x7) 6 120 The figure below shows a plot of sin(x) [blue] and the above Taylor polynomial [red]. 0.8 0.6 0.4 0.2 1...
-
A 500 mm diameter closed-end steel pipe pile is to be driven to a depth of 17 m into the following soil profile. Depth (m) 0-2.0 2.0-6.5 6.5 16.0 16.0 17.5 Soil Classification Silty sand Fine to...
-
Water flowing in a positive x-direction passes through a 90 elbow in a 6-inch-diameter pipeline and heads in a positive y-direction with a flow rate of 3.05 ft3/sec. Compute the magnitude and...
-
Determine the kinetic energy lost when corner C of the plate of Prob. 18.35 hits the obstruction.
-
Income statement and balance sheet data for The Athletic Attic are provided below. Required: 1. Calculate the following risk ratios for 2021 and 2022: a. Receivables turnover ratio. b. Inventory...
-
Discuss the different types of HRIS T&D applications and their reporting and decision-support capabilities.
-
1. Wages and prices will increase when actual output exceeds potential. __________(True/False) 2. The short run in macroeconomics is the time period over which __________do not adjust to economic...
-
Bonus: The angle of depression of the top of Billings Building from the roof of the Wolcott Building (in the same vertical plane) is 33.10, and from the 15th floor it is 21.50. If the distance...
-
Nanoparticles (3 nm in diameter) of platinum with a total weight of 1 milligram are used in automobile catalytic converters to facilitate oxidation reactions. As Pt is an expensive metal, a method to...
-
write a report on your experience with the recent online tuition. (Maximum of two page). NB: Please type the solutions
-
Part 1 - Rent Calculation Assume the following for a floor in a multistory office building: total usable area: 62,500 sq ft; Total common area: 4,100 sq ft; total rentable area: 66,600 sq ft; Tenant...
-
Sport L&K Company produces annual cash flows of $748 dollars and is expected to exist forever. (Numbers are in thousands). The company is currently financed with 59 percent equity. Your analysis...
-
8) The data below relates to the accounts of a firm which manufacturers a single product. Factory wages, 60% of which are paid to production staff 340,000 Rent & rates, 85% of which is for the...
-
In AD Parroll's 1991 essay, a pyramid of corporate social responsibilities have been created. After over 30 years, do you still agree with this order? Why or why not
-
Describe how you would ensure the integrity of information provided by the client to provide appropriate financial services. (financial planning)
-
The Charge Inside a Conductor (Figure 1) A spherical cavity is hollowed out of the interior of a neutral conducting sphere. At the center of the cavity is a point charge, of positive charge q. Figure...
-
1. Below is depicted a graph G constructed by joining two opposite vertices of C12. Some authors call this a "theta graph" because it resembles the Greek letter 0. a. What is the total degree of this...
-
Larry and Lisa Williams, both 33 years old, have been married for 9 years. They live at 638 Arctic Way, Fairbanks, AK 99701. Lisa's Social Security number is 445- 81-1423 and Larry's is 798-09-8526....
-
Charlie's Green Lawn Care is a cash basis taxpayer. Charlie Adame, the sole proprietor, is considering delaying some of his December 2012 customer billings for lawn care into the next year. In...
-
Dr. Ivan I. Incisor and his wife Irene are married and file a joint return for 2012. Ivan's Social Security number is 477-34-4321 and he is 48 years old. Irene I. Incisor's Social Security number is...
-
As the new controller, reply to the following comment made by your plant manager: When I employ a proper accounting software, which can process all my daily accounting records and provide me with all...
-
How is financial accounting different from management accounting?
-
Hannah Gilpin is the controller of Blakemore Auto Glass, a division of Eastern Glass and Window. Her division has been under pressure to improve its divisional operating income. Currently, divisions...
Study smarter with the SolutionInn App