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
Students at Jefferson Middle School are required to read a 3-book series for their literature class. Book 1 has 303 pages, Book
katrin2010 [14]
There is 981 pages in the whole series
7 0
3 years ago
Given the following two statements, is the compound statement valid? p: Two angles are congruent. q: The angles are vertical Com
maw [93]
No, this is not valid.  In the picture below, \angle a is a vertical angle with \angle b.  But \angle a is not \cong \angle b

5 0
3 years ago
Two airplanes leave the same airport. One heads north, and the other heads east. After some time, the northbound airplane has tr
Fofino [41]

Answer:

17 miles

Step-by-step explanation:

85 - 68

17

7 0
3 years ago
Question 8 heeellppp plzzzzzz
Ratling [72]

Answer:

1/4

Step-by-step explanation:

8 0
2 years ago
What is the vertex form of 2x=y^2-10
Salsk061 [2.6K]

Answer:

x = 0.5y^2 - 5.

Step-by-step explanation:

2x=y^2-10

Divide both sides by 2:

x = 0.5y^2 - 5

5 0
3 years ago
Read 2 more answers
Other questions:
  • The function c = 2.50(n – 2) + 4.50 represents the cost c in dollars of printing n invitations. Which of the following is not tr
    5·1 answer
  • If you pay a one time fee of $30, you can purchase gold tickets for you local minor league baseball team for only $3 a game. Reg
    9·1 answer
  • Erin has $14 dollars to buy 7 lunches for the week. Write and solve an inequality that
    12·1 answer
  • Using the "Part4Series.txt" time series
    11·1 answer
  • Luisa deposits $44.60 to her bank account on Tuesday morning. on Wednesday, she withdraws $66.30 on Thursday, she wildew $30 Whi
    5·1 answer
  • Which decimal is greater 0.36 or 0.49
    15·2 answers
  • Triangle DEF is an isosceles triangle.
    12·1 answer
  • Ms. Strauss fills gum and trinket machines in front of grocery stores. In the trinket machine, there tattoos and stickers. If Mr
    9·1 answer
  • Need help on this problem
    9·1 answer
  • 1 months salary 1000 rupees. How many salary in 1 day.​
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!