Question: 8-Write and test a program that solves quadratic equations. A quadratic equation is an equation of th =0, where a,b, and c are given coefficient
8-Write and test a program that solves quadratic equations. A quadratic equation is an equation of th =0, where a,b, and c are given coefficient and x is the unknown. The coefficient are real numbers inputs, so they should be declared of the type float or double. Since quadratic equations typically have two solutions, use x1 and x2 for the solutions to be output. These should be declared type double to avoid inaccuracies from round off error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
