Question: help me to build a C++ Program , please 2 5 2 8 5 2 9 0 0 1 3 0 9 6 3 3
help me to build a C++ Program , please

2 5 2 8 5 2 9 0 0 1 3 0 9 6 3 3 9 1 8 5 2 1 4 10 9 8 1 3 6 8 9 10 7 3 2 5 4 8 1 4 10 6 8 5 9 4 1 3 9 1 9 8 5 1 10 5 8 4 1 10 3 2 0 2 0 2 4 6 10 10 7 10 10 2 8 4 10 8 1 3 8 5 5 7 6 6 2 4 3 7 4 2 6 1 8 9 5 4 7 5 4 0 5 4 0 1 8 6 2 10 7 1 1 8 4 5 5 3 5 1 2 0 5 4 7 3 9 0 3 7 3 2 7 5 6 4 9 7 3 4 3 3 9 2 7 1 0 3 0 2 9 8 2 4 10 4 1 10 1 6 0 5 3 5 9 3 4 1 9 5 7 9 4 6 1 1 3 4 7 8 8 10 7 10 7 8 4 1 7 7 7 3 5 3 1 4 4 10 7 7 0 10 3 9 4 5 6 5 2 2 10 8 4 1 9 0 10 0 6 10 2 3 2 10 8 8 4 4 7 1 5 2 1 10 9 0 0 3 7 10 2 0 6 6 6 10 7 5 6 5 8 9 8 2 1 9 1 3 7 5 10 3 0 10 5 6 1 1 3 5 1 0 0 3 7 6 8 9 9 6 9 2 1 6 8 5 2 10 5 1 8 8 7 8 5 10 10 4 9 4 7 0 4 8 8 0 10 3 8 8 9 7 5 6 0 1 9 3 10 7 4 9 7 4 5 1 5 9 7 0 9 8 1 6 3 9 7 4 3 7 9 4 1 4 7 6 8 6 9 4 1 3 3 6 6 3 8 6 3 0 3 9 7 3 9 10 2 2 3 4 4 9 8 9 9 4 3 4 9 9 4 10 0 6 1 3 3 10 5 7 10 7 9 5 0 9 6 3 5 7 5 3 10 9 3 8 2 1 9 6 8 2 7 1 1 8 1
The attached file contains lines with three integers each that represent the three coefficients, a, b, and c (in that ordery, of a general quadratic equation ax bx C Implement the quadratic equation in a function with the signature int quad int a, int b int c The function should return one of three values indicating whether the roots of the quadratic with the passed coefficients are real, imaginary, or zero. The program should write the one line of output: There are real roots, imaginary roots, and zero roots. Guidelines Use the function int readArray(std:ifstream ifs, int a0, int sz) discussed in class to read in the coefficients Use a switch statement to analyze the return from quad)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
