Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Collaboration is encouraged, but copying is not allowed. A good rule of thumb is that talking about a problem is collaboration. Looking at someone

 

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')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials Of Services Marketing

Authors: Jochen Wirtz

4th Edition

1292425199, 9781292425191

More Books

Students also viewed these Programming questions

Question

1.14 Identify four major objectives of science.

Answered: 1 week ago