Home / Expert Answers / Computer Science / using-python-3-develop-a-flow-chart-and-pseudocode-for-the-problem-below-and-show-the-steps-and-expl-pa887

(Solved): using python 3 develop a flow chart and pseudocode for the problem below and show the steps and expl ...



using python 3

develop a flow chart and pseudocode for the
problem below and show the steps and
explain each lines
Problem Statement. The ro
develop a flow chart and pseudocode for the problem below and show the steps and explain each lines Problem Statement. The roots of a quadratic equation ar²+bx+c = 0 can be determined with the quadratic formula, - b ± ?b² - 4ac 2a X? X? Develop an algorithm that does the following: Step 1: Prompts the user for the coefficients, a, b, and c Step 2: Implements the quadratic formula, guarding against all eventualities for example, avoiding division by zero and allowing for complex root) Step 3: Duplays the solution, that is, the values for x Step 4: Allows the user the option to return to step 1 and repeat the process import numpy as no a eval(input("Please input as")) beval(input("Please input bi")) ceval(input("Please input es")) TWO el-0 22-0 d if a - 01 b**2- 4*a*e it b -- 01 print("There is no solution to this equation") elif b 1- DE x = -b/c print("The solution r , 1) elif a 1- Os if dor ri-(-b+np.sqrt(d))/(2a) 22-(-b-np.sqrt(d))/(2a) print("The solutions rl and r2 ares, r1, "and", 22,, respectively.") elif d < 0 print("The equation does not have real solutions.")


We have an Answer from Expert

View Expert Answer

Expert Answer


The flowchart for this program will be: Pseudo code: import numpy library as np #taking input for a b and c a= input() b=input() c=input() #initialise values for r, r1 a
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe