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)
Question 3 - Pseudo-code
Print “enter student marks”
Read student marks
IF marks<50 THEN