/****************************************************************************** Lab Exercise #2 -- Part D ******************************************************************************/ using namespace std; #include #include #include int main() { double A, B, C; // the coefficients of the equation double Root1, Root2; // the roots of the equation cout << "\nEnter the coefficient A: "; cin >> A; cout << "\nEnter the coefficient B: "; cin >> B; cout << "\nEnter the coefficient C: "; cin >> C; /**** Replace this comment with the calculations of the roots ****/ cout << setiosflags( ios::fixed ) << setprecision( 1 ); cout << "\nThe coefficients of the equation:\n"; cout << " Coefficient A = " << A << endl; cout << " Coefficient B = " << B << endl; cout << " Coefficient C = " << C << endl; cout << "\nThe roots of the equation:\n"; cout << " Root #1 = " << Root1 << endl; cout << " Root #2 = " << Root2 << endl; }