Question: Write a python program to read three coefficients of a quadratic equation AX2+BX+C = 0 and find the roots of the equation (ignore the complex
Write a python program to read three coefficients of a quadratic equation AX2+BX+C = 0 and find the roots of the equation (ignore the complex solution for now). Roots formula -B+B? -4AC Root 1 = {-B + sqrt (B2-4*A*C)}/2A = * 2A Root 2 = (-B - sqrt (B2 - 4*A*C)}/2A = -B-B2-4AC 2A NB. Use power of 1 for square root operation. Things to do in the program: 1. Input o Receive the coefficients (A, B, C) individually and interactively from the keyboard with a specific prompt message specifying the coefficient being received. 2. Calculate the roots (two roots) 3. Output o Display coefficient A o Display coefficient B o Display coefficient o Display the roots To do 1. Open the Jupiter Notebook 2. Write your complete script. 3. Test it 4. Download your script and upload it on blackboard
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
