Answered You can hire a professional tutor to get the answer.

QUESTION

Program 8 - Simple Functions The quadratic formula is used to solve a very specific type of equation , called a quadratic equation . These equations...

I need help with writing codes for this program. Can you provide me the codes for this problem? Thank you!!

Program 8 - Simple FunctionsThe quadratic formula is used to solve a very specific type of equation , called aquadratic equation . These equations are usually written in the following form :"ax 2 + box + C = 0The Quadratic Formula* = - 6 + Vb Z _ 4ac2 0Where a , 6 , and care constants with a $ 0 . ( If a = O , the equation is a linear equation . )The discriminant is the part of the formula in the square root . If the value of thediscriminant is zero then the equation has a single real root . If the value of thediscriminant is positive then the equation has two real roots . If the value of the*discriminant is negative , then the equation has two complex roots ."Write a program that finds the roots of the quadratic equation using the QuadraticFormula . Write a function named discriminant in the file , Disc . py , to calculate andreturn the discriminant of the formula . Let the main function call the discriminant functionand then calculate the solution ( s ) of the equation . Do not calculate the solutions inthe discriminant function . You will not get credit for the program if you do . Allowthe user to run the program as many times as possible until a sentinel value of zero ( 0 )has been entered for the coefficient A. Include the recommended minimum*documentation for each function . See the program one template for more details .Do not use any global variables . You will not get credit for the program if you do.Run your program at least four times with the data below . Copy and paste the outputsto a file . Create a folder named , fullname_ programs . Copy your source codes andthe output file to the folder . Zip the folder and upload it to Blackboard .Run 1Run 2Run 3Run 4a =a =a =a = 4D = 21D = - 12D = 96 = 6C = _ 8\C = 36C = _ 5C = 20
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question