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
This is the last task​
Black_prince [1.1K]

The answer is attached.

6 0
3 years ago
Work out the volume of a prism with an area of 10m squared and a length of 8m
Jobisdone [24]
Is it 80 m I think that’s the answer
4 0
3 years ago
Help pls !! how would I write this equation
aev [14]

2x = Twice your age

200 = Two hundred less

> -1 = more than negative


With the information given, your equation would be:

200-2x>-1

7 0
3 years ago
The following were the recorded birth weights for babies born July 16, 2011: 8.1 lbs., 6.0 lbs., 4.7 lbs., 6.9 lbs., 5.6 lbs., 7
rodikova [14]
8.1 + 6.0 + 4.7 + 6.9 + 5.6 + 7.7 + 6.3 + 7.8 + 6.1 + 9.2 = 68.4/9 = 7.6
6 0
3 years ago
Can I get help on 6 and 7
Aloiza [94]
The cost depend on the number pencils, so the cost is the y and # of pencils is the x
Same as for question 7
To graph, the length depend on the time, so length is y, time is x
6. Linear
7. Not

6 0
3 years ago
Other questions:
  • Desperately need help…Please!!!
    12·1 answer
  • How much 0.144 divide 0.96
    10·2 answers
  • You are standing amongst a crowd for a parade that is 10 feet deep, on both sides of the street, and 1 mile long. If each person
    7·2 answers
  • The square shown has sides of length 7z^5 decimeters. Find its area
    9·1 answer
  • Solve for y.<br> -80 + y = 80<br> y=0<br> y=-160<br> y = 160
    15·1 answer
  • Which pairs of triangles can be shown to be congruent using rigid motions?
    14·2 answers
  • I need help again must appreciate brainly for correct
    11·1 answer
  • A town is going to use its property tax records to pick
    8·1 answer
  • WHOEVER ANSWERS FIRST I WILL GIVE BRAINLYIST
    14·1 answer
  • Plz help me with this​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!