Illustrate your knowledge of C-Programming by writing a user defined function to solve the quadratic equation. Function will take a, b and c as input and compute and return both the roots of the...

Write a c program of the attachment attached below
Illustrate your knowledge of C-Programming by writing a user defined function to<br>solve the quadratic equation. Function will take a, b and c as input and compute and<br>return both the roots of the quadratic equation. If roots are imaginary, function will<br>return -1 as the error value for both the roots. In main(), ask the user to enter values<br>Page 1 of 3<br>of a, b and c and call the user defined function. At the end, main() will display both<br>the roots returned by the function on screen.<br>-6±/6²–4ac<br>x =<br>2a<br>

Extracted text: Illustrate your knowledge of C-Programming by writing a user defined function to solve the quadratic equation. Function will take a, b and c as input and compute and return both the roots of the quadratic equation. If roots are imaginary, function will return -1 as the error value for both the roots. In main(), ask the user to enter values Page 1 of 3 of a, b and c and call the user defined function. At the end, main() will display both the roots returned by the function on screen. -6±/6²–4ac x = 2a

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here