Question: 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

 Problem 2 Next, derive another class from well called Horizontalwell that

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!