Computers and Technology

(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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, gabesurlas
You should try to photograph people on bright sunny days because the light will be best a) true b) false
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, uh8hardiek
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
image
Computers and Technology, 23.06.2019 20:10, banna01man
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
image
Computers and Technology, 24.06.2019 16:50, bella7524
7.23 main lab 7 - online shopping cart background this main lab extends the earlier prep lab "online shopping cart part 1". (you should save this as a separate project from the earlier prep lab). you will create an on-line shopping cart like you might use for your on-line purchases. the goal is to become comfortable with setting up classes and using objects. requirements this lab can be done individually or as pair programming. expanded itemtopurchase class (15 points) extend the itemtopurchase class as follows. we will not do unit testing in this lab so we will not be giving you the names of the member functions. create good ones on your own. create a parameterized constructor to assign item name, item description, item price, and item quantity (default values of "none" for name and description, and 0 for price and quantity). additional public member functions set an item description get an item description print the cost of an item - outputs the item name followed by the quantity, price, and subtotal (see example) print the description of an item - outputs the item name and description (see example) additional private data members a string for the description of the item. example output of the function which prints the cost of an item: bottled water 10 @ $1.50 = $15.00 example output of the function which prints the item description:
Answers: 1
Do you know the correct answer?
(a) A quadratic equation in mathematics is of the form ax2 + bx + c =0. The discriminant of such a...

Questions in other subjects: