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
Sarah earns $10 per hour while babysitting and $20 per hour while cleaning houses. Sarah will need to earn $1000 during the summ
kozerog [31]
Why not just work for 50 hrs on house cleaning and get 1000$
4 0
3 years ago
What is the decimal number 34.576 written in expanded form?
lara31 [8.8K]

The decimal number 34.576 written in expanded form is: D: three times ten plus four times one plus five times one tenth plus seven times one hundredth plus six times one thousandth.

<h3>Decimal number in expanded form</h3>

Decimal number=34.576

Tens    Ones      Tenths  Hundredths Thousandths

3             4 . 5              7                 6

Hence,

Expanded Form 34.576:

34.576 = (3× 10^1) + (4² 10^0) + (5× 1/10^1) + (7× 1/10^2) + (6 × 1/10^3)

34.576 = (3 × 10) + (4×1) + (5× 1/10) + (7× 1/100) + (6×1/1,000)

34.576 = 30 + 4 + 5/10 + 7/100 + 6/1,000

34.576 = 30 + 4 + 0.5 + 0.07 + 0.006

34.576=34.576

Therefore the correct option is D.

Learn more about Decimal number in expanded form here:brainly.com/question/603715

#SPJ1

4 0
2 years ago
Find the value of each variable. X and y. 26 30
meriva

Answer:

x = 13 and y = 13√3

Step-by-step explanation:

Recall that sin Ф = opposite side / hypotenuse, and that

                   cos Ф = adjacent sice / hypotenuse.

if we recognize that the angle Ф is 30° here, then we know that:

x = opposite side = hypotenuse * sin 30° = 26*(1/2) = 13.

and....

y = adjacent side = hypotenuse*cos 30° = 26*√3/2 = 13√3

In summary, x = 13 and y = 13√3

3 0
3 years ago
Laura got a discount of 100 dollars on her purchase of a 5775 bed.What is the percent of decrease?
matrenka [14]
Remember that percent means parts out of 100
x/100

discount is the decrease
so we divide the decrease by the original total and get
100/5775=0.0173
convert to fraction
0.0173/1
make bottom number 100
multiply by 100/100
1.73/100=1.73%
round
2%
5 0
3 years ago
Suppose two parallel lines are cut by a transversal.which angle must be supplementary
Alborosie

Adjacent angles are supplementary

4 0
3 years ago
Other questions:
  • Omar owns a sandwich shop, and his best selling sandwich is the BLT. When making BLT sandwiches, it takes of a pound of bacon to
    5·1 answer
  • Which of the following forms the correct proportion forms the correct proportion with 7/14?
    14·2 answers
  • 1/4y + 1 1/2 + 2 - 1 3/4y - 12
    7·1 answer
  • In 3/5 divided 3 = 1/5 the ____ is 3
    13·1 answer
  • If u is a unit vector, find u · v and u · w. (assume v and w are also unit vectors.) equilateral triangle
    11·1 answer
  • Tickets for a concert have been in increadbibly high demand. and as the date for the concert draws closer the price of tickets i
    10·1 answer
  • You have a bag of 12 marbles. Four are blue, 6 are green, 2 are red, and the others are yellow. What is the prpobability of draw
    12·2 answers
  • {4x+10y=8<br>{4x+3y=22<br><br>x=<br>y=​
    13·1 answer
  • -4x - 5y=-7<br> -x+5y=17
    5·1 answer
  • The net of a triangular prism is shown in the diagram. Use the ruler provided to measure the dimensions of the net to the neares
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!