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...
-
Firm F, a calendar year taxpayer, owes a $200,000 long-term debt to an unrelated creditor. In December, it paid $14,160 to the creditor as interest for the 12-month period from the prior September 1...
-
Acetic acid is a weak acid. Upon losing a proton, acetic acid yields the acetate anion. (a) Draw a dot diagram for the acetate anion. (b) Hydrogen atoms that are bound to carbon atoms are not acidic....
-
Can the numerical instability be avoided by simply using higher precision (larger number of decimal digits) in the computations, thus reducing the round-off error? If not, what would be the effect of...
-
Payroll Tax Entries the payroll of Delaney Company for September 2010 is as follows. Total payroll was $480,000, of which $140,000 is exempt from Social Security tax because it represented amounts...
-
You were hired as the auditor of Rta corp. which started its operation on January 8, 2020. Below details are disclosed in RtA's trial balance on December 31, 2020. Account receivable ...
-
Will Googles pay strategy work forever? Consider the evolution of Microsofts pay strategy as its growth slackened. Should Google prepare for a similar future? If so, when and what sort of actions...
-
Recently, you have graduated from accounting program and took the CPA exam and passed, and went to work for Taylor & Morgan (T&M), CPA firm. You have been committed to helping the firm grow....
-
True or False. The response spectrum gives the maximum response of all possible single-degree-of-freedom systems.
-
The response spectrum is widely used in a. building design under large live loads b. earthquake design c. design of machinery under fatigue
-
Fill in the Blank. Any nonperiodic function can be represented by a(n) ___________ integral.
-
True or False. For a harmonic oscillator, the acceleration and displacement spectra can be obtained from the velocity spectrum.
-
Who bears the risk when an open account is used to settle an international transaction?
-
Which task is reserved for the pharmacist in the telepharmacy model? Drug Utilization Review. Adjudication of insurance. Filling of prescription orders. Data entry.
-
What is the difference between direct materials and indirect materials?
-
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...
-
1. The German-American Vocational League was formed in New York during World War II to serve as a propaganda agency for the German Reich. Under U.S. law all foreign agents were required to register....
-
3. David and Fiona Rookard purchased tickets for a trip through Mexico from a Mexicoach office in San Diego. Mexicoach told them that the trip would be safe. It did not tell them, however, that their...
-
2. ETHICS Radio TV Reports (RTV) was in the business of recording, transcribing, and monitoring radio and video programming for its clients. The Department of Defense (DOD) in Washington, D.C., was...
Study smarter with the SolutionInn App