subject

(a) A quadratic equation in mathematics is of the form ax2 + bx + c =0. The discriminant of such an equation is given by
D2 = (b2 – 4ac) or = √(
2 − 4 . The roots of a quadratic equation are
given by 1,2 =
−±√(
2−4
2
, i. e., 1 =−+√(
2−4
2
and
2 =
−−√(
2−4
2
.
(i) if D > 0, then the quadratic equation has real roots 1 2
(ii) if D = 0, then the quadratic equation has one root, i. e., the roots are
the same 1 = 2

(iii) If D < 0, then the quadratic equation has complex roots given by
1,2 =
−±√(4−
2
2
.
Draw a flow chart for finding the roots of a quadratic equation as indicated
in a (i), (ii) and (iii). (10 marks).
(b) Write part of a program code (NOT a complete program) using an if--
-else statement for checking the roots given in (a) (i), (ii) and (iii).(10
marks).
help am new to c programming

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, lizz1228
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
image
Computers and Technology, 22.06.2019 19:30, bstine6678
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
image
Computers and Technology, 23.06.2019 13:50, mrfishyyyy
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
image
Computers and Technology, 23.06.2019 22:00, bb1593
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
You know the right answer?
(a) A quadratic equation in mathematics is of the form ax2 + bx + c =0. The discriminant of such a...

Questions in other subjects:

Konu
English, 07.06.2021 14:00
Konu
English, 07.06.2021 14:00