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: = − ± √ −

Answers

Answer 1

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.


Related Questions

Shaq ate 2 hot dogs every 12 hours. At that rate, how long, in hours, will it take to eat 5 hot dogs? label optional​

Answers

5 hotdogs = 30 hours

Help! Have no clue how to do. Will give Brainly thing if someone helps

Answers

Answer:

h = 18( I might be wrong though)

Step-by-step explanation:

If BE and ED are perpendicular, that means this angle is supplementary.

BEF = 3h-12

FED = 2h - 23

BEF + FED = 90

3h-12 + 2h - 23 = 90

5h - 35 = 90

5h = 90

h = 18 degrees

I think the answer would be h=18 degrees;)

I WILL AWARD BRAINLIEST HELP PLEASE what are the x and y intercepts for y=−9x−14

Answers

Answer:

x-intercept(s):

(−14/9,0)

y-intercept(s):

(0,−14)

Answer:

The y-intercept is -14

The x-intecept is 1.5555...

Step-by-step explanation:

y-intercept is given on the equation

x-intercept

y = 0

0 = -9x-14

14 = -9x

- divide -9 from both side

x = -1.5555..

This is the x-intercept

-5y=60 solve for y plz. y=

Answers

Answer:

Y = -12

Step-by-step explanation:

Answer:

-12

Step-by-step explanation:

-5y=60

y=60/-5

y=-12

Changing it to the other side the negative sign is the same

A point is randomly selected on the grid. What is the probability that the point will be located in the shaded region? Give your answer as a fraction,​

Answers

Answer:

how big is the shaded region tell me that and i will edit my answer to the right one

Step-by-step explanation:

Answer:

13/24

Step-by-step explanation:

I just did it happy holidays

What is the value of 0.15 divided by
0.05?

Answers

3!
:) hope this is right

How many ounces of a 15% alcohol solution must mixed with 2 ounces a 20% alcohol solution to make a 17% alcohol solution

Answers

The answer is 6 oz :)

On Thursday, Maura and her grandmother planted a total of
21 flowers. The ratio of yellow flowers they planted to the total
number of flowers they planted was 2:7. How many yellow
flowers did Maura and her grandmother plant on Thursday?

Answers

D because it is d XDXD

Answer:could be 10

Step-by-step explanation:

Which expression has a value of 31?

A) 3125 + 7-5

B) (3:25) +7-5

C) 3125+ (7-5)

D) 3(125 + 7) - 5

Answers

Answer:

d. Is the answer from this question

Step-by-step explanation:

3(5+7)-5

3*12-5

36-5

31

The expression 3(√25 + 7) - 5 has a value of 31 after applying arithmetic operation option (D) 3(√25 + 7) - 5 is correct.

What is an expression?

It is defined as the combination of constants and variables with mathematical operators.

It is given that:

An expression that has a value of 31

The arithmetic operation can be defined as the operation in which we do the addition of numbers, subtraction, multiplication, and division. It has a basic four operators that is +, -, ×, and ÷.

A) 3√25 + 7-5

= 3(5) + 7 - 5

= 15 + 7 - 5

= 17

B) (3√25) +7-5

= (3x5) +7-5

= 15 +7-5

= 17

C) 3√25+ (7-5)

= 3x5 +2

= 17

D) 3(√25 + 7) - 5

= 3(5+7) - 5

= 36 - 5

= 31

Thus, the expression 3(√25 + 7) - 5 has a value of 31 after applying arithmetic operation option (D) 3(√25 + 7) - 5 is correct.

Learn more about the expression here:

brainly.com/question/14083225

#SPJ2

Write 3 2/3 as an improper fraction

Answers

Answer:

11/3

Step-by-step explanation:

Multiply the 3 by the 3 and then add 2.

[tex]3 \frac{2}{3} [/tex]

[tex](3 \times 3) + 2[/tex]

[tex]9 + 2 = 11[/tex]

[tex] \frac{11}{3} [/tex]

Solve the equation g+ (-20) = 9.

Answers

Answer:

g=29

Step-by-step explanation:

g+(-20) is the same as g-20.

We need to get the g by itself, so we then add twenty to both sides to get g=29

Hope this helps :-)

Answer:

29

Step-by-step explanation:

g+(-20)=9

g-20=9

g=9+20

g29

Hank invested $50,000 in a mutual fund that earns 7% interest compounded annually. How much interest did he earn after 10 years?

F)$35,000
G)$48,357.57
H)85,000
J)98,357.57

Answers

Answer:

F $35,000

Step-by-step explanation:

3,500 is 7% of 50,000 3500 multiplied by 10 years= 35,000

9514 1404 393

Answer:

  G)  $48,357.57

Step-by-step explanation:

The future value formula can be used to find the account value:

  FV = P(1 +r)^t

where P is invested at annual rate r for t years.

  FV = $50,000(1.07^10) ≈ $98,357.57

The amount of interest earned is the difference between this value and the value of the initial investment:

  interest = $98,357.57 -50,000 = $48,357.57

Hank earned $48,357.57 in interest after 10 years.

_____

At 7% interest, the "rule of 72" tells you the doubling time of the account is about 72/7 = 10.3 years. That is the account value will be not quite double the original investment after 10 years. So, the amount of interest earned is only slightly less than $50,000. If the account earned simple interest, the interest earned would be $35,000. Only one answer choice is more than $35,000 and less than $50,000.

If the sour patch kids cost 3.99$ and Nichole decided to buy 1.5 pounds of sour patch kids how much will it cost?

Answers

Answer:

How much does it cost per pound because if it’s just $3.99 per pound then it’ll cost $3.99

Step-by-step explanation:

What is the equation of the line in point slope form given a slope of -3 and a point of (-2,-5)?​

Answers

Answer:

y = -3x - 11

Step-by-step explanation:

Use the given slope and point in the point-slope equation. Solving this will give us the y-intercept equation.

Point-slope formula: y - y = m(x - x)

Plug in the slope and point

y - (-5) = -3(x - (-2))

Subtracting negatives will make them positive. Multiply out the -3 to what is in the parentheses.

y + 5 = -3x - 6

Subtract the 5 from both sides

y = -3x - 11

The equation of the line is y = -3x - 11

Solve for the indicated variable. I WILL MARK BRAINLIEST

PV = nRT for T
solve for T
T=

Answers

Answer:

T= PV/nR

Step-by-step explanation:

To solve for T, you Will have to divide both sides by the coefficient of T that is, nR. That's how I got my answer T = PV/nR

the sum of 17 and a number X is equal to 20

Answers

17+x=20, subtract 17 from both sides, x=3

simplify -3/4 divided by 2/-8

Answers

Answer: 3

Step-by-step explanation:

(-3/4)/(-2/8)=(-3/4)(-8/2)=(-3/4)(-4)=3

is 3.66227766017 rational or irrational?

Answers

Answer:

I think it's irrational (viewpoint)

This is an irrational.

Oil is spilled onto a kitchen floor. The area covered by the oil at time t is given by the function A, where A(t) is measured in square centimeters and t
is measured in seconds. Which of the following gives the rate at which the area covered by the oil is changing at time t=10?

Answers

Answer:

did you ever fine out the answer to this lol

Step-by-step explanation:

Oil is spilled onto a kitchen floor. The area covered by the oil at time t is given by the function A, where A(t) is measured in square centimeters and t

is measured in seconds. The rate at which the area covered by the oil is changing at time t = 10 is  A'(10).

Given that:

The area covered by the oil at time t = A(t)

To determine the rate at which the area covered by the oil is changing with time, we need to differentiate  A(t) with respect to time t.

By differentiation:

[tex]\mathbf{\dfrac{dA}{dt} =A'(t)}[/tex]

The rate at which the area covered with oil is changing is t = 10

[tex]\mathbf{\dfrac{dA}{dt} \Big| _{t=10}=A'(t)\Big|_{t=10}}[/tex]

[tex]\mathbf{\dfrac{dA}{dt} =A'(10)}[/tex]

Therefore, we can conclude that the rate at which the area covered by the oil is changing at time t=10 is  A'(10).

Learn more about differentiation here:

https://brainly.com/question/24898810?referrer=searchResults

Raia purchases a new car for $32,000 and finances it with a 6-year simple interest loan at a rate of 4.25% What are Raia’s monthly car payments?

Answers

Answer:

569

Step-by-step explanation:

Raia’s monthly car payments is $8160.

What is simple interest?

Simple Interest (S.I.) is the method of calculating the interest amount for a particular principal amount of money at some rate of interest.

Given that, Raia purchases a new car for $32,000 and finances it with a 6-year simple interest loan at a rate of 4.25%

We need to find;

What are Raia’s monthly car payments?

So, SI = PRT / 100

P = Principal amount

r = rate

T = time

So,

SI = 32000 x 4.25 x 6 / 100

= 8160

Hence, Raia’s monthly car payments is $8160.

Learn more about simple interest, click;

https://brainly.com/question/25845758

#SPJ3

I’m not sure if i am correct with my answer. Can Someone help or confirm which answer it is or if i’m correct or not? :)

Answers

hi! i think it’s the last one (270 degrees counterclockwise and 1 unit to the right)

if it was 180 degree, the shape would be in quadrant II, not quadrant III

Find the product of D = BA.
d11 = 0
d12 = 6
d21 = 1
d22 = -4

Answers

The required matrix is [tex]AB=\begin{pmatrix}0 &6 \\1 &-4 \end{pmatrix}[/tex].

Given equation is,

[tex]D = BA[/tex]...(1)

Equivalent matrix:

Equivalent Matrices are two matrices that have the same size and shape. There are certain conditions that must be met for matrices to be equivalent (or equal) to each other.

Also, the elements of the matrix [tex]D[/tex] are,

[tex]D=\begin{pmatrix}0 &6 \\1 &-4 \end{pmatrix}[/tex]....(2)

Then from equations (1) and (2) the required product of [tex]AB[/tex] is,

[tex]AB=\begin{pmatrix}0 &6 \\1 &-4 \end{pmatrix}[/tex]

Learn more information about the Equivalent matrix:

https://brainly.com/question/1821869

Answer:

1- 0

2- 6

3- 1

4- (-4)

Step-by-step explanation: EDGE 2022

Please help! Three step linear equations

(Please don’t answer with links)

5х + 6 = 8х + 12

Answers

Answer:

I solved it and my answer is - 2

Step-by-step explanation:

5x+6=8x+12

5x-8x =12 - 6

-3x =6

Divide by - 3

X=-2

Jay walks 3 blocks north and then 4 blocks east from his home if he walks straight back home how far does Jay walk-in all?

Answers

Answer:

he walked 7 block's

Jay walks 3 blocks north and then 4 blocks east from his home if he walks straight back home, 5 blocks  does Jay walk-in all

What is Trigonometry?

Trigonometry is a branch of mathematics that studies relationships between side lengths and angles of triangles.

Given,

Jay walks 3 blocks north and then 4 blocks east from his home if he walks straight back home.

We have to use pythagorean theorem in finding distance

As given in the attachment, Let AB= 3

BC=4

AC=x

To find AC we use pythagorean theorem

AC²=AB²+BC²

AC²=3²+4²

AC²=9+16

AC²=25

Take square root on both sides.

AC=5

Hence 5 blocks he walks straight back home how far does Jay walk-in all

To learn more on trigonometry click:

https://brainly.com/question/25122835

#SPJ2

3 accidents in 12 months

Answers

Answer:

1 accident every four months.

Step-by-step explanation:

If you're supposed to find the number of accidents every 4 months, then the answer will be 1 accident every four months.

If this wasn't the answer, can you please provide more detail in your question so i can edit my response?

Thanks :)

Which number is an irrational number?
A) 3.5
B)
36
C)
48
D)
37
100

Answers

Answer:

3.5

Step-by-step explanation:

The number 41 is decreased to 38. What is the percentage by which the number was
decreased, to the nearest tenth of a percent?

Answers

Decrease = 3
percentage decrease = 3/41 = 7.3 %

When comparing slopes which is steeper?

Answers

Usually the one with the more vertical line would be steeper.

how old am i pick a number from 11-20 if you get it right ill mark you as brainlyest if your close ill mark you as brainlyest

Answers

Answer:

your 20

Step-by-step explanation:

Answer:

15?

Step-by-step explanation:

I didn't look at the comments, I swear

If f()
2x² + 3x + 1, what is the value of f(-2)?

Answers

Answer:

3

Step-by-step explanation:

f(x) = 2x² + 3x + 1

f(-2) = 2(-2)² + 3(-2) + 1

       = 8-6+1

       = 3

Other Questions
Explain period motion of oscillatory body. Plz help me with this I have no idea what to do Rachel earned $34 in 4 hours at her job today. She wants to know how much she could earn, e, tomorrow if she works 10 hours at the same hourly rate.How much will Rachel earn in 10 hours? !y108642-10-8-6-4-2X46810-2-4-6-8-10 Explain the relationship between an individual and a society 4 lb 4 oz 2 lb 7 ozA.1 lb 13 ozB.2 lb 13 ozC.2 lb 3 oz The Confederate defeat at Vicksburg was important because it...A.ended the last major Confederate invasion of the North.B.resulted in the Confederacy being split in half along the Mississippi River.C.caused Jefferson Davis to resign as president of the Confederacy.Oo D.forced Robert E. Lee to leave Virginia and take command in the West. (4) My golden age was sixteen: my sophomore year of high school and the year everybody starts Drivers Ed. (5) During tenth grade, Id already turned sixteen, finished driving school, and gotten my license. (6) The only problem was that I didnt have a car. (7) I was anxious to drive. How should sentence 5 be changed? 1) change gotten to received 2) change driving to drivers 3) change tenth grade to sophomore year 4) change sixteen to 16. 2(x - 3) =Your answer What is the "heart of the French diet"? PLEASE HELP WILL GIVE BRAINLIEST The areas of three circles are shown.Which list shows the circles in order from greatest area to least area? Julio eats a taco for dinner. What represents a physical change in the taco?A) saliva changing the starch in the crust to sugarB) teeth tearing off a bite of a taco C) chemicals in the stomach digesting proteins D) breaking down of fats in the taco by bile A truck can be rented from Company A for $130 a day plus $0.40 per mile. Company B charges $70 a day plus $0.60 per mile to rent the same truck. Find the number of miles in a day at which the rental costs for Company A and Company B are the same. Gavin buys 11.6 pounds of hamburger meat for a cookout. How many quarter pound (0.25) burgers can he make? Which graph shows the function f(x) = x with an input of f (1/3x)? The Declaration of Independence contains which of the following? A. A list of grievances (complaints) against the king of EnglandB. A debate over which powers should be held by the federal or state governmentsC. A plan for organizing new territoriesD. A draft of the Articles of Confederation What land did Spain give up to Great Britain in the Treaty of Paris?a.Canadab.land east of the Mississippi Riverc.Texasd.FloridaI NEED HELP when did alcatraz cloused Please pick between a b c or d help please!!