Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started