Question: part 3 Part 3 1 . Create a NEW file named Cubic.py and implement the following class Cubic to find the roots of cubic equations.

part 3 Part 3
1. Create a NEW file named Cubic.py and implement the following class Cubic to find the roots of cubic equations. Create your prog2Q3. ipynb or prog2Q3. py modified from prog2Q1 to import the new class. Submit both Cubic.py and prog2Q3 upon zipping them together as prog2Q3. zip.
```
class Cubic:
# constructor to initialize a list of 4 coefficients: coeff[]
# there should be only one attribute coeff[], instead of 4 attributes
def __init__(self, C =[1,1,1,1]):
...
# Store the values of input parameter to coeff[]
def setCoeff(self, C) :
```
part 3 Part 3 1 . Create a NEW file named

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 Programming Questions!