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]
3 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]3 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
Please answer my question
Viefleur [7K]

Answer:

yes

Step-by-step explanation:

i like points lol

4 0
3 years ago
Bill is making accessories for the soccer team. He uses 778.88 inches of fabric on headbands for 29 players and 3 coaches. He al
Reptile [31]

Answer:

Step-by-step explanation:

8 0
3 years ago
Simplify the expressions by distributing the negatives and combining like terms ​
Illusion [34]

Answer:

-2 times 6d=-12d

-2 times -11= 22

Answer:  -12d+22

Step-by-step explanation:

5 0
3 years ago
Can someone please help
Masteriza [31]
19 hours is your answer
 
8 0
3 years ago
Read 2 more answers
2 less then 5 times a number
Alex

Answer:

5-2n

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • What is the gcf of 16 24 and 40?
    15·2 answers
  • What is the value of n? Enter your answer in the box.
    6·1 answer
  • Which is a chemical property of hydrogen?
    5·2 answers
  • Please help me on my homework guys:(​
    13·1 answer
  • A standard number cube with the numbers 1 through 6 is rolled. Find the probability of rolling a number less than 3 plz help wil
    10·1 answer
  • Which two numbers have an absolute value of 50
    11·1 answer
  • PLEASE HELP ME!!! please asap
    5·1 answer
  • 2 Mini Lesson: A wireless phone plan costs Eric $35 for a month of service during which he sent 450 text messages. If he was cha
    8·1 answer
  • What is the least common multiple of 6 and 9?<br><br><br> 3<br><br> 18<br><br> 36<br><br> 54
    6·1 answer
  • 20/6 is
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!