Question: **************************Please use python***************************** 1.) The code is given below. Write the function quad that calculates the result of the quadratic formula and returns the results

**************************Please use python*****************************

1.) The code is given below. Write the function quad that calculates the result of the quadratic formula and returns the results to be printed.

def quad(a, b, c):

#Your code

def main():

a = float (input ("Enter coefficient a: "))

b = float (input ("Enter coefficient b: "))

c = float (input ("Enter coefficient c: "))

root1, root2, = quad (a, b, c)

print ()

print ("The solutions are: ", root1, root2)

Answer:

*********Function**********

def quad(a, b, c):

#Your Code

**********Print***************

Print result:

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!