1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ira [324]
2 years ago
8

Write a program that will solve a quadratic equation: ax2 + bx + c = 0. The program must ask the user to enter the values for a,

b and c. It should then determine the discriminant of the parabola and based on the discriminant it should display the real roots: Discriminant = b2 - 4ac > 0 means there will be two distinct real roots. Discriminant = b2 - 4ac = 0 means there will be only one real root. Discriminant = b2 - 4ac < 0 means there will be no real roots. Use the if - then else structure in your program to decide the outcome of the program. User must then use the quadratic equation to solve for x: = − ± √ −
Mathematics
1 answer:
JulsSmile [24]2 years ago
4 0

Answer:

x= -b ±√b²- 4ac/2a

Step-by-step explanation:

ax2 + bx + c = 0

Dividing the quadratic equation by a gives

x2 + b/ax + c/a = 0

x2 + b/ax = - c/a

Applying the square formula

(x)^2 + 2(x) (b/2a) + (b/2a)^2= + (b/2a)^2- c/a

(x+b/2a)^2= b²/4a² - c/a

(x+b/2a)^2= b²/4a² - 4ac/4a²

(x+b/2a)^2= b²- 4ac/4a²

Taking square root of both sides gives

(x+b/2a)= ±√b²- 4ac/2a

x= -b/2a±√b²- 4ac/2a

x= -b ±√b²- 4ac/2a

This is called the quadratic formula and it can solve the value for x for the given value of a, b and c for the quadratic equation.

From this it is concluded that

Discriminant = b2 - 4ac > 0 means there will be two distinct real roots. Discriminant = b2 - 4ac = 0 means there will be only one real root. Discriminant = b2 - 4ac < 0 means there will be no real roots.

This is because a square root of a value greater than 0 is possible and gives two values for roots of x.

The square root of a value less than 0 gives a negative number and therefore the roots are an imaginary number.

The square root of a value greater equal to 0 gives a zero leaving behind only one real root.

You might be interested in
If a: b= 3:4 then find the value of<br>(6a-3b :(5a + 2b)​
KengaRu [80]

Answer:

6 : 23

Step-by-step explanation:

a : b = 3 : 4 ....(given)\\  \\ let \: a = 3x \\ b = 4x \\  \\ (6a - 3b) : (5a + 2b) \\  \\  =  \frac{(6a - 3b)}{(5a + 2b)}  \\  \\  = \frac{6(3x) - 3(4x)}{5(3x) + 2(4x)} \\  \\  =  \frac{18x- 12x}{15x+ 8x} \\  \\  = \frac{6x}{23x} \\  \\  =  \frac{6}{23}  \\  \\ (6a - 3b) : (5a + 2b) = 6  : 23

7 0
2 years ago
Find the surface area of this prism. (ILL MARK YOU A BRAINLEST IF THE ANSWER IS RIGHT. PLS HELP)
Elden [556K]

Answer: the surface area is 216cm

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
I need help with this problem please
NNADVOKAT [17]

<em>n</em> must be 0, since <em>x </em>ⁿ = 1 for all positive, real <em>x</em> if <em>n</em> = 0. So the answer is A.

7 0
2 years ago
I have homework and i dont understand it its called "Solving Systems of Equations by Elimination." The problem im stuck on is
Goshia [24]
8x + y = -16 ;
3x  - y  = 5 ;
____________(+)
11x      = -11;
x = - 11 / 11 ;
x = - 1;
y = -5 + 3 * ( - 1 ) = - 8.
8 0
3 years ago
3/11+22/41= simplified version
luda_lava [24]
First do 41 divided by 11, which equals 3.73
then multiply 11 by that and then you get 41 as the same denominator, next multiply 3 by 3.73 which equals 11.18
4 0
3 years ago
Other questions:
  • Which point lies on the line whose equation is 2x-3y=9
    6·1 answer
  • Help with geometry asap quiiiik
    10·1 answer
  • the music booster sell 322 music buttons and raise $483 for the music departemen how much does each button cost
    13·2 answers
  • -8 • (6 + 3) + 390 + 6<br> Answer here
    12·2 answers
  • . A marine biologist needs to add a new chemical to one of her fish tanks (300 L in volume). She adds a chemical solution with c
    14·1 answer
  • Find the value of 216m³ - 8n³ if 6m - 2n=0 and mn=12​
    8·1 answer
  • PLA HELP I'LL MARK BRAINLEST
    14·2 answers
  • Question
    9·1 answer
  • How do you write 5.13 × 10–4 in standard form?
    15·1 answer
  • 2900 people attended a football game. 1595 of the people attending supported the home team, while 1305 supported the visiting te
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!