Question: Question 1: (5 points) Draw a flow chart to find all the roots of a quadratic equation a x2 + bx+c = 0 (where a,
Question 1: (5 points) Draw a flow chart to find all the roots of a quadratic equation a x2 + bx+c = 0 (where a, b, c are real numbers and a can't be 0 ) A quadratic equation with real numbers as coefficients can have the following: 1. Two different real roots if the discriminant b2 - 4 xa xc is a positive number. -b + b2 - 4ac -b-b2 - 4ac x1 = x2 = 2a 2. One real root if the discriminant b2 - 4 xa xc is equal to 0. 2a -b 2 a 3. No real root if the discriminant b2 - 4 xa xc is a negative number. Question 2: (5 points) Draw a flow chart to check if the given number is a perfect number or not (i.e. A Perfect number is a positive integer that is equal to the sum of its proper divisors). For example: The smallest perfect number is 6, which is the sum of 1, 2, and 3. Other perfect numbers are 28, 496, and 8,128
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
