subject
Mathematics, 11.10.2020 23:01 monaae3824

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

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 12:30
Awrestling tournament begins with 128 competitors. in the first round, each competitor has 1 match against another wrestler. the winner of each match moves on to the next round until there is a winner. write a sequence in which the terms represent the number of players still in the tournament at the end of each round. describe the sequence? how many rounds are in the tournament?
Answers: 1
question
Mathematics, 21.06.2019 13:00
What is the ratio for the surface areas of rectangle prisims shown below given that they are similar and that the ratio of their edge lengths is 7: 3
Answers: 1
question
Mathematics, 21.06.2019 18:00
State if the two triangles are congruent. if they are, state how you know?
Answers: 1
question
Mathematics, 21.06.2019 21:30
The measures of the legs of a right triangle are 15m and 20m . what is the length of the hypotenuse
Answers: 1
You know the right answer?
Write a program that will solve a quadratic equation: ax2 + bx + c = 0. The program must ask the use...
Questions
question
Mathematics, 30.09.2020 05:01
question
Mathematics, 30.09.2020 05:01
question
Mathematics, 30.09.2020 05:01
question
Mathematics, 30.09.2020 05:01
question
Mathematics, 30.09.2020 05:01
Questions on the website: 13722363