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
Reduce 12/20 to lowest term
skelet666 [1.2K]

Answer:

3/5

Step-by-step explanation:

12/20

(divide both by 2)

12/2= 6

20/2=10

6/10

(divide by both by 2)

6/2= 3

10/2= 5

3/5

7 0
3 years ago
360 miles traveled on 12 gallons of gasoline
Serggg [28]
Multiply 30 and 12 and your answer will be 360
4 0
3 years ago
Read 2 more answers
There is a 12-ft fence on one side of a rectangular garden. The gardener has 44 ft of fencing to the enclose the other three sid
Morgarella [4.7K]

Answer:

  16 ft

Step-by-step explanation:

One of the other three sides is 12 ft. After that fence is subtracted from the total, there are 32 ft of fence left for the other two sides of the rectangle. That allows those sides to be 32 ft/2 = 16 ft long.

The rectangle can be 12 ft by 16 ft. The longer dimension is 16 ft.

7 0
3 years ago
An eraser is in the shape of a triangular prism. Its dimensions are shown in the diagram. What is surface area of the
Colt1911 [192]

Answer:

6000 square millimeters

Step-by-step explanation:

Side length of the slanting side can be calculated using the Pythagorean theorem,

L = sqrt(30^2+40^2) = 50

sufrace area of a triangular prism

= surface area of the end sections + the surface area of the three side faces

= 2*(30*40/2) + 40*(30+40+50)

= 1200 + 4800

= 6000 mm^2

4 0
3 years ago
Read 2 more answers
MY PFPPPPPPPPPPPPPPPPPPPPPP WHAT HAPPENED!???
rjkz [21]

Answer:

I don't know what happened to your profile picture... I don't know if mods can remove/change pfps, but if so, then that could be the case -- especially if your pfp challenged Brainly's rules and community guidelines. Then again, it could have just been you...

Step-by-step explanation:

8 0
2 years ago
Read 2 more answers
Other questions:
  • There are 30 names in a hat. If two names are picked without replacement, which expression shows the probability that Jack and J
    5·1 answer
  • Which relationships have the same constant of proportionality between y and x as in the equation y=1/3x?
    15·1 answer
  • What is the verbal expression of 3x-7
    13·1 answer
  • 2/3-1/4 I want the answer please
    5·2 answers
  • What is the next logical statement in the proof below?
    5·2 answers
  • I'm awarding 20 points for an answer!
    14·1 answer
  • Please help MATHEMATICS
    6·1 answer
  • Please help me on dis question
    6·1 answer
  • ∠3 and ∠4 are supplementary angles. Given m∠3=56°, find m∠4
    13·1 answer
  • Calculate the percent change in net sales from
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!