Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 Next, derive another class from well called Horizontalwell that assigns the attribute well_type = 'horizontal' and takes two positional arguments, depth and length

image text in transcribed

Problem 2 Next, derive another class from well called Horizontalwell that assigns the attribute well_type = 'horizontal' and takes two positional arguments, depth and length (in that order), and assigns them to attributes called depth and length , respectively. Then implement a member function called compute_wellbore_volume that takes a positional argument diameter and using diameter and the attributes depth and length, computes the total volume of the wellbore. Assume the total wellbore distance is depth + length. See the follow examples for the expected usage of the class and member functions. You should not reimplement the __str__ function in Horizontalwell. horizontal_well = Horizontalwell(depth = 5000, length = 15000) print(horizontal_well) will return 'Well type: hortizontal' Also, horizontal_well.depth will return 5000 and horizontal_well.length will return 15000 and horizontal_well.compute_wellbore_volume (diameter = 0.5) will return 3926.9908169872415 Problem 2 Next, derive another class from well called Horizontalwell that assigns the attribute well_type = 'horizontal' and takes two positional arguments, depth and length (in that order), and assigns them to attributes called depth and length , respectively. Then implement a member function called compute_wellbore_volume that takes a positional argument diameter and using diameter and the attributes depth and length, computes the total volume of the wellbore. Assume the total wellbore distance is depth + length. See the follow examples for the expected usage of the class and member functions. You should not reimplement the __str__ function in Horizontalwell. horizontal_well = Horizontalwell(depth = 5000, length = 15000) print(horizontal_well) will return 'Well type: hortizontal' Also, horizontal_well.depth will return 5000 and horizontal_well.length will return 15000 and horizontal_well.compute_wellbore_volume (diameter = 0.5) will return 3926.9908169872415

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

=+you think is being taxed when more money is printed? Why?

Answered: 1 week ago