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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 13:00
Which option should u select to ignore all tracked changes in a document
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
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
question
Social Studies, 01.10.2019 11:30
question
Mathematics, 01.10.2019 11:30
Questions on the website: 13722367