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
Laura family is going on vaction.they will drive 4,180 miles over the next two weeks.about how many miles will they drive on ave
RSB [31]
If she can drive 4180 miles in <em>two </em>weeks, it would make sense that she would drive an average of <em>half </em>that distance in <em>one </em>week. Half of 4180 is 2090, so she averaged 2090 miles each week.
6 0
3 years ago
Read 2 more answers
Which answer choice represents an equivalent number sentence of "15 + (3 - 8)"?
frozen [14]

Answer:

A- 15-5 is the same

Step-by-step explanation:

15 + (3-8)

15 + (-5)

15-5

8 0
4 years ago
Read 2 more answers
Write an expression that represents the quantity 5 more than a number
Natali5045456 [20]
6+7 is that good i hope so
3 0
3 years ago
Eight friends went to a hockey game. The
ASHA 777 [7]

Step-by-step explanation:

Four bought a book at $6

4 x $6 = $24

8 x $x = $8x

Expression

$24 + $8x

3 0
3 years ago
Read 2 more answers
35=7x. please help me fasttt
AlladinOne [14]

Answer:

x=5

Step-by-step explanation:

35 divided by 7 is 5, so in that case, 7 times 5 is 35.

3 0
3 years ago
Other questions:
  • For what value of k will the points of simultaneous equations have no solution?
    15·1 answer
  • Which of the following is an integer but not a whole number? A) 2.6 B)7 C) 14 D) -100
    10·1 answer
  • Ok i have to identify the slope and the y intercept
    15·2 answers
  • Help!!!!!!!! plz I need your help
    9·1 answer
  • Please help me and show how you worked out.
    8·1 answer
  • I need to know what 7 x 4 is
    6·1 answer
  • What is the length of Line segment A C? Round to the nearest tenth.
    14·1 answer
  • Find the lengths of the sides of the triangle if the vertices of EFG are E(-2,-3), F(-2,2) and G(3,2). Find the lengths of FG
    15·1 answer
  • Each car on a Ferris wheel travels 942.5 ft during 10 rotations of each ride. How high is each car at the highest point of each
    15·1 answer
  • What is the area of this trapezoid?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!