Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.1k views
in Computer by (15 points)
edited by

Draw the flow chart to find the roots of quadratic equation.

Please log in or register to answer this question.

1 Answer

0 votes
by (46.7k points)

Algorithm:

Step I : Start.

Step II: Input a, b, c, del, r1, r2.

Step III: Print “Enter the value of coefficient of the X2.”

Step IV: Read a.

Step V: Print “Enter the value of coefficient of the X.”

Step VI: Read b.

Step VII: Print “Enter the value of constant C.”

Step VIII: Read c.

Step IX: del = b X b -4 X a X c

Step X: If del is less than zero Then,

r1 = ( -b / ( 2 X a ) ) + sqrt ( del ) / 2 X a

r2= ( -b / ( 2 X a ) ) -sqrt ( del ) / 2 X a

Print“Roots are complex and unequal.

”Print “The roots for the entered values are r1 and r2.”

Else -if del is greater than zero Then,

r1 =( -b / ( 2 X a ) ) + sqrt ( del ) / 2 X a

r2 = ( -b / ( 2 X a ) ) -sqrt ( del ) / 2 X a

Print “Roots are real and unequal.”

Print “The roots for the entered values are r1 and r2.”

Else,

 r1 = ( -b / ( 2 X a ) ) + sqrt ( del ) / 2 X a

Print “Roots are real and equal.”

Print “The root for the entered values is r1.”

Flowchart:

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...