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
The professor of a business statistics class wanted to find out the average amount of time per week her students spent studying
zhenek [66]

Answer:

Cluster sample

Step-by-step explanation:

This is an example of a cluster sample. In a cluster sample, the examiner divides the population into groups (each one of these groups is called a cluster) and once the examiner has these clusters, takes one of them and recollects the data from ALL the members of that cluster. In this case, the teacher divided the class in 3 different groups and then selects one of these groups and asks the average amount of time per week he/she spent studying.

6 0
3 years ago
The set of ordered pairs represented by the graph below can be described as which of the following
Aneli [31]

ANSWER

a relation only

EXPLANATION

The given graph shown in the attachment represents only a relation and not a function.

The reason is that, a vertical line drawn across this graph will intersect this graph at more than one point.

Since the graph fails to pass the vertical line test, the ordered pair represented by this graph represents a relation only.

6 0
3 years ago
Read 2 more answers
What is 1(4X9)<br> What is the answer
valina [46]
Solve:

Do the parenthesis first, so 4*9=36

Now multiply it by 1.

1*36=36

Final answer: 36

6 0
3 years ago
Read 2 more answers
Jo says she can find the percent equivalent of 3/4 by multiplying the percentage equivalent of 1/4 by 3. How can you use a perce
schepotkina [342]
You can by filling 1 out of 4 bars then multiply the shaded bars by 3<span />
4 0
3 years ago
One, no, or infinitely many solutions
rusak2 [61]

Answer:

Only one solution

Step-by-step explanation:

Given:

2c + 4 - 3c = -9 + c + 5

Find:

Number of solution

Computation:

2c + 4 - 3c = -9 + c + 5

-c + 4 = -4 + c

-2c = -8

c = 4

Only one solution

6 0
3 years ago
Other questions:
  • How would you find the x and Y intercept on a graph?
    8·1 answer
  • How can I simplify these?
    14·1 answer
  • Find the least positive angle measurement that is coterminal with 230°.
    7·1 answer
  • List three attributes of shapes
    15·1 answer
  • What is the total number of possible outcomes rolled when rolling six dice?
    9·1 answer
  • Please help on 10 11 and 12
    7·1 answer
  • A customer buys a car for $14,500. The car loses value at a rate of 3.5%
    13·2 answers
  • Plssssssssssssssssss help asap so am what part % of 18 is 24 it iis not 75
    15·1 answer
  • Salma pumped 49 gallons of water out of her pool. This was done over a period of 7 minutes
    9·1 answer
  • The amounts spent by 5 students on back to school supplies are $28.50, $25.75, $23.60, $30.20, and $25.00. Jenny spends $41.13 f
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!