Please help me with this code in python. I need help answering questions from 'a to g' in the second screenshot attached. Please include screenshots for better understanding. In the image attached, for places where it asks 'name' and other personal information - please use special characters or symbols or fake names and such. Thank you!

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Please help me with this code in python. I need help answering questions from 'a to g' in the second screenshot attached. Please include screenshots for better understanding. In the image attached, for places where it asks 'name' and other personal information - please use special characters or symbols or fake names and such. Thank you!

b) You do not have to perform the entire computation in one line; you can use multiple lines to
perform the computation if you want.
c) It is OK to introduce variables to hold values that are not a "final" value. For example, if you
were computing the area of a circle, you might store the radius in one variable, then the radius
squared in another variable, and then later multiply that by pi to compute the area.
Program 1 Requirements:
This program should produce several lines of output as described in parts a) through g) below. Repeat
the steps from LabAssignment1b, but use variables and assignment statements to add functionality to
the code. For each of the equations in parts c) through g), provide comments in the code to document
the name of the equation and the name of input variables and the corresponding units. Also, print the
results to the screen formatted similarly to the example above including numerical results, units, and
formatting.
a) Your name, UIN, and section number of ENGR 102 that you are enrolled in
b) A sentence giving some interesting fact about yourself
c) Use Ohm's Law to calculate the voltage across a conductor with resistance 20 ohms and a
current of 5 A where A represents amperes.
d) The Kinetic Energy in joules (J) of an object with mass 100 kg and velocity 21 m/s
e) The Reynolds Number (Re) for a fluid with velocity 100 m/s and kinematic viscosity 1.2 (m^2)/s,
with characteristic linear dimension 2.5 m.
f) Use Arps Equation to calculate the production of a well after 20 days, if it had an initial
production rate of 100 barrels/day, an initial decline rate of 2 barrels/day, and a hyperbolic
constant of 0.8.
g) Use the Mohr-Coulomb Failure Criterion to calculate the shear stress when a normal stress of
20 Ibf/in^2 is applied to a material with cohesion 2 Ibf/in^2 and angle of internal friction 35
degrees.
Transcribed Image Text:b) You do not have to perform the entire computation in one line; you can use multiple lines to perform the computation if you want. c) It is OK to introduce variables to hold values that are not a "final" value. For example, if you were computing the area of a circle, you might store the radius in one variable, then the radius squared in another variable, and then later multiply that by pi to compute the area. Program 1 Requirements: This program should produce several lines of output as described in parts a) through g) below. Repeat the steps from LabAssignment1b, but use variables and assignment statements to add functionality to the code. For each of the equations in parts c) through g), provide comments in the code to document the name of the equation and the name of input variables and the corresponding units. Also, print the results to the screen formatted similarly to the example above including numerical results, units, and formatting. a) Your name, UIN, and section number of ENGR 102 that you are enrolled in b) A sentence giving some interesting fact about yourself c) Use Ohm's Law to calculate the voltage across a conductor with resistance 20 ohms and a current of 5 A where A represents amperes. d) The Kinetic Energy in joules (J) of an object with mass 100 kg and velocity 21 m/s e) The Reynolds Number (Re) for a fluid with velocity 100 m/s and kinematic viscosity 1.2 (m^2)/s, with characteristic linear dimension 2.5 m. f) Use Arps Equation to calculate the production of a well after 20 days, if it had an initial production rate of 100 barrels/day, an initial decline rate of 2 barrels/day, and a hyperbolic constant of 0.8. g) Use the Mohr-Coulomb Failure Criterion to calculate the shear stress when a normal stress of 20 Ibf/in^2 is applied to a material with cohesion 2 Ibf/in^2 and angle of internal friction 35 degrees.
Begin with Program 1 from Activity 4 of last week's LabAssignment1b. You are to convert that program
to a new program that produces identical output. However, for all of the calculations, you are to instead
create variables for all values that are either constants or are values that might vary in the calculation.
Recall the following example from LabAssignment1b:
# calculate/print area of rectangle of length 5 in. and height 3 in.
print ("Area of rectangle is",5 * 3, "in^2") # area of rectangle in in^2
print ()
New code:
New output:
Area of rectangle is 15 in^2
Now, we know about variables and assignments statements, so let's modify the code as follows:
# calculate/print area of rectangle of length 5 in. and height 3 in.
length = 5 # inches
height
area = length * height # in^2
print ("Area of rectangle is", area, "in^2")
print ()
Newer code:
%3D
= 3 # inches
# area of rectangle in in^2
Newer output: Area of rectangle is 15 in^2
Transcribed Image Text:Begin with Program 1 from Activity 4 of last week's LabAssignment1b. You are to convert that program to a new program that produces identical output. However, for all of the calculations, you are to instead create variables for all values that are either constants or are values that might vary in the calculation. Recall the following example from LabAssignment1b: # calculate/print area of rectangle of length 5 in. and height 3 in. print ("Area of rectangle is",5 * 3, "in^2") # area of rectangle in in^2 print () New code: New output: Area of rectangle is 15 in^2 Now, we know about variables and assignments statements, so let's modify the code as follows: # calculate/print area of rectangle of length 5 in. and height 3 in. length = 5 # inches height area = length * height # in^2 print ("Area of rectangle is", area, "in^2") print () Newer code: %3D = 3 # inches # area of rectangle in in^2 Newer output: Area of rectangle is 15 in^2
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Software products
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education