The program below solves the Quadratic formula for real roots only, but
it does not use C++ classes.  Please re-design and re-implement the program
so that it uses C++ classes.PLEASE ONLY GIVE ME THE SOURCE CODE, I DO NOT WANT A CPP FILE. Also I will run the program to make sure it works. Thank you so much!!#include #include #include #include using namespace std;int main () {  double a, b, c, disc = 0;  cout << "Please enter your three coefficients for your quadratic equation ";  cin >> a >> b >> c;  if (!cin.eof() && cin.good() && a != 0) {     // system keyboard tests !cin.eof() and cin.good  // test for eof from the keyboard and good input data in that order.  The !cin.eof()  // test has to come first to check if the user wants to bail without completing his  // data entry. If the test cin.good is put first, the control-z or control-b input  // will be understood as an invalid input, which is an undesirable side-effect.  // a != 0 is an application test which rejects a value which equals zero  // application tests always follow system tests and never precede them.     disc = b*b – 4*a*c;  if (disc < 0)  { cout << " No real roots"; }  else if (disc == 0)  { double root = -b/(2*a);    if (root == 0) root = abs(root);   cout << " One real root; x = " << root;  }  else   { // show both roots   double root1, root2;   root1 = -b/(2*a) + sqrt (disc)/(2*a);   root2 = -b/(2*a) - sqrt (disc)/(2*a);   cout << " Two real roots; root1 = " << root1    << " and root2 = " << root2;  }  }  else  if (!cin.eof())  cout << " One or more invalid inputs";  cout << endl;  return EXIT_SUCCESS;}




Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.