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 15:30
Strawberries cause two hours per pound kate buys 5 pounds he gets 20% off discount on the total cost how much does kate pay for the strawberries
Answers: 3
question
Mathematics, 21.06.2019 17:00
The rectangle on the right is the image of the rectangle on the left. what transformation would result in this image? reflection rotation translation dilation
Answers: 2
question
Mathematics, 21.06.2019 17:00
Asif spent $745.10 on 13 new file cabinets for his office. small file cabinets cost $43.50 and large file cabinets cost $65.95. write and solve a system of equations to find the number of small cabinets and large cabinets he purchased. determine if each statement is true or false. 1. he purchased 5 small cabinets. true or false 2. he purchased 7 large cabinets. true or false 3. he spent $527.60 on large cabinets. true or false
Answers: 2
question
Mathematics, 21.06.2019 17:10
Which of the following expressions is equal to 2x^2+8
Answers: 2
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, 10.09.2019 22:30
Questions on the website: 13722363