Question: need the code in c just c not c# or c++, need to see how to work it works out Objective Practice .else statements Background

need the code in c
just c not c# or c++, need to see how to work it works out
Objective Practice .else statements Background in a previous homework we evolved quadratic equations, that is, we calculated yax fargenvalues af , and in this homework, we sve quadratic equations, which means the find the roots of the equation or in other words we find x where ar + forgive values of 0,6, and c. Necall the quadratic formula: - by- The expresion under the square root the quantity - Ac) to called the crit. If it is positive there are two real roots if it is zero there is one real roots and if it is negative, there are two complex Assignment 1. Write a function that solves aud i o, Elven valmofa, b, and return void and take parameters abandwhich are all doubles the function should Your function should print the roots) of the equation with two decimal places in a way similar to this obviously substituting the correct value foron x2. To do this, you'll need to test the discriminant for being positive, estiver er x 0.13 and 2-10 there are two reas) Of there is one real root If there are two comprats) xi -0.13.0.47 and 2-0.3-0.47 You can either or as the imaginary unit, 1. in electrical and computer engineering jis often used instead of ito avoid confusion where is used as a symbol for current. 2. in mainil. call your function to solve the following equations 3x + 2x + 1 = 5x + 2x - 70 +2x+10 + x + 2-0 22. 2x=0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
