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
What number must you add to complete the square x^2+2x=9
MAVERICK [17]

Answer:

+ 1

Step-by-step explanation:

Given

x² + 2x = 9

To complete the square

add ( half the coefficient of the x- term )² to both sides

x² + 2(1)x + 1² = 9 + 1²

(x + 1)² = 10

5 0
3 years ago
Read 2 more answers
In ΔABC shown below, ∠BAC is congruent to ∠BCA: Triangle ABC, where angles A and C are congruent Given: Base ∠BAC and ∠ACB are c
Morgarella [4.7K]
1. Definition of bisector
2. ASA congruence theorem or ASA Postulate
6 0
3 years ago
Read 2 more answers
I need to find and write the equation for the problem.
Julli [10]
0.8p - 50 < = 150
0.8p < = 150 + 50
0.8p < = 200
p < = 200/0.8
p < = 250

the reason I set it up this way is because when it is 20% off, u r actually paying 80% of the original price (p)....80% of the original price is written as 0.8p...then u subtract ur 50 dollar discount coupon...- 50.....and if all she can spend is 150....it would be less then or equal to 150. So the most she can spend on the phone is 250

7 0
3 years ago
Read 2 more answers
Suppose a scientist has 13 liters of acid and she needs 16 liters for an experiment.
vekshin1
B cause 13 plus x is equal to the 16 liters that u need and u already have 13 liters
3 0
3 years ago
Please answer ASAP! The Fergusons decided to book the room at the price that Mrs. Ferguson was given, $2075, because it included
Alex787 [66]
So what you should do is
15% off, then add tax or
2075 times 0.85 times 1.185=2090.04 about

you can't just add and subtract percents because they are percents of different things

what he did was
he found 15% of 2075 and 18.5% of 2075 then found the difference and added to 2075 to find his total

what he should have done is
found the discounted price (15% off) then found the tax on that


first way
2075 times 0.15=311.25
2075-311.25=1763.75
1763.75 times 0.185=326.29375
1763.75-326.29375=2090.04

2nd way (easy, if you understand commutative property and stuff)
100-15=85
1+0.185=1.185
2075*0.85*1.185=2090.04


answer should be $2090.04
7 0
3 years ago
Other questions:
  • Select the correct answer.
    8·2 answers
  • ALOT OF POINTS PLS ANSWER!<br> :)
    12·2 answers
  • Can someone tell me which box’s to click plsss and thank you
    10·1 answer
  • Verify (a+b+c)^2=a^2+b^2+c^2+2ab+2bc+2ca<br> With the observation answer
    14·1 answer
  • You borrow $30,000 at 9.5% simple interest for 120 days. the terms of the loan use a 365 day year. 1)how much interest will you
    13·1 answer
  • What is the solution for the system <br> 6x+9y=21<br> 4x-7y=-27
    13·1 answer
  • 4x + 1 over 3y2
    14·1 answer
  • Charlotte reads 8 1/2 pages in 10 minutes. What is her average reading rate in pages per minute?
    7·1 answer
  • Simplify the expression
    13·1 answer
  • Which of the following has a slope of –2 and a y-intercept of 4?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!