The formula of finding the roots of a quadratic expression is given here below
In finding the roots, the values a, b and c are identified and then the discriminant i.e.
b2 - 4ac is calculated
If the discriminant is negative, then the roots are termed as "imaginary" otherwise the two roots are calculated using the formula.
Write a pseudo code that will solve the problem above. The values of a, b and c are entered from the keyboard. (5mks)
Possible Marks Distribution
( Award 1 mk for start & stop)
( Award 1 mk for reading a,b & c)
( Award 1 mk for testing discriminant)
( Award 1 mk for proper calculation of roots)
( Award 1 mk for output of roots & imaginary)
MAURICE NYAMOTI is a high school teacher and has passion in helping students improve grades