Questions on Pseudocode - Part 2
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)
Follow AtikaSchool.Org on our Social Channels
This gives you an opportunity to get our latest uodates, changes and firsthand information
Leave a Reply.
P.O Box 1189 - 40200 Kisii
Tel: 0728 450 424
Tel: 0738 619 279
Tel: 0763 450 425
E-mail - email@example.com