Expert answer:Need help with a simple C++ assignment

Answer & Explanation: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;}

How it works

  1. Paste your instructions in the instructions box. You can also attach an instructions file
  2. Select the writer category, deadline, education level and review the instructions 
  3. Make a payment for the order to be assignment to a writer
  4.  Download the paper after the writer uploads it 

Will the writer plagiarize my essay?

You will get a plagiarism-free paper and you can get an originality report upon request.

Is this service safe?

All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 20% with the discount code ESSAYHELP