Collaboration is encouraged, but copying is not allowed. A good rule of thumb is that talking...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Collaboration is encouraged, but copying is not allowed. A good rule of thumb is that talking about a problem is collaboration. Looking at someone else's paper and writing down what they have is copying. Collaboration focuses on ideas and processes, and gaining understanding. Copying is usually about getting an answer written down to turn in. A. Review each segment of code and determine the output if they are run from a script. (You may wish to try it out on your own!) Report the output in the right column. If you get an error message, write "error" in the output column and indicate why there is an issue and provide corrected code. Commands: a input ("Enter a number: ') input ('Ente: a number: ') b print (a + b) Output: User enters 1 # User enters 3 import math aint (math.pi) bint (math.e) print (a + b) #pi is approx. 3.1415 te is approx. 2.7183) input ('Enter your name: ') #User enters Billy print (name) age input('Enter your age: ') # User enters 19 nextyear age 1 print('Next year you will be ' next year). 42 = x 10 y print (xy) miles input ('How many miles did you run? ') # User enters 4 km float (miles) - 1.609 print (miles + miles is + str(km) + km') Collaboration is encouraged, but copying is not allowed. A good rule of thumb is that talking about a problem is collaboration. Looking at someone else's paper and writing down what they have is copying. Collaboration focuses on ideas and processes, and gaining understanding. Copying is usually about getting an answer written down to turn in. A. Review each segment of code and determine the output if they are run from a script. (You may wish to try it out on your own!) Report the output in the right column. If you get an error message, write "error" in the output column and indicate why there is an issue and provide corrected code. Commands: a input ("Enter a number: ') input ('Ente: a number: ') b print (a + b) Output: User enters 1 # User enters 3 import math aint (math.pi) bint (math.e) print (a + b) #pi is approx. 3.1415 te is approx. 2.7183) input ('Enter your name: ') #User enters Billy print (name) age input('Enter your age: ') # User enters 19 nextyear age 1 print('Next year you will be ' next year). 42 = x 10 y print (xy) miles input ('How many miles did you run? ') # User enters 4 km float (miles) - 1.609 print (miles + miles is + str(km) + km')
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
When you typically enter a front door to any business, you would normally see right off the bat what that business main focal point is or what their mission statement is. Their primary reasons for...
-
In December 2014, Shire Computer's management establishes the 2015 predetermined overhead rate based on direct labor cost. The information used in setting this rate includes estimates that the...
-
Required: Prepare journal entries for each of the following transactions: 1. Issued share capital for $3,000 cash 2. Purchased $2,000 of equipment on credit 3. Paid $400 cash for this month's rent 4....
-
Happy Jalapenos, LLC has an exclusive contract to supply jalapeno peppers to the organizers of the annual jalapeno eating contest. The contract states that the contest organizers will take delivery...
-
Express the magnetic field due to a uniformly moving charged particle in terms of the electric field of the particle and its velocity.
-
In January, gross earnings in Lugo Company totaled $80,000. All earnings are subject to 7.65% FICA taxes, 5.4% state unemployment taxes, and 0.8% federal unemployment taxes. Prepare the entry to...
-
4. 5. A heavy particle is projected with a velocity at an angle with the horizontal into the uniform gravitational field. The slope of the trajectory of the particle varies with its horizontal...
-
Suppose you want to move out of your apartment and buy a small house. Let s assume that your income is $ 3 9 , 6 0 0 a year, your student loans cost $ 2 5 0 per month, and your car payment is $ 3 2 5...
-
Which of the following statements is true concerning assigned fund balance? a. Assigned fund balance reflects a government's intent to use resources for a specific purpose. b. Assigned fund balance...
-
A government hospital's assets include the following: a. \(\$ 2,000,000\) set aside by the hospital board as an endowment to support research for curing the common cold b. \(\$ 25,000,000\) donated...
-
Which of the following statements is true? a. Encumbrances are equivalent to expenditures, and encumbrances outstanding at the end of a year should be reported as liabilities. b. No expenditure can...
-
The fund balance category used to reflect a positive residual of assets less liabilities in any fund other than the General Fund is a. assigned fund balance. b. committed fund balance. c....
-
Which of the following statements about capital budgets is true? a. Most capital program budgets cover a period of two to six years. b. The current segment of a capital program is typically included...
-
List the three key messages from the Dietary Guidelines for Americans, 2010 that the MyPlate icon is designed to convey.
-
Currently, there are five concepts of food stands, including: hot dogs, soft pretzels, turkey legs, sandwich wraps, and funnel cakes. This approach will double the existing number of food stands...
-
A company issues $1,000,000 face value of 10-year bonds on January 1, 2015 when the market interest rate on bonds of comparable risk and terms is 5%. Th e bonds pay 6% interest annually on December...
-
Midland Brands issues three-year bonds dated January 1, 2015 with a face value of $5,000,000. Th e market interest rate on bonds of comparable risk and term is 3%. If the bonds pay 2.5% annually on...
-
A company redeems \($1\),000,000 face value bonds with a carrying value of \($990\),000. If the call price is 104 the company will: A . reduce bonds payable by \($1\),000,000. B . recognize a loss on...
Study smarter with the SolutionInn App