Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

liquifiedkronic

  • 4 years ago

Specify, design and implement a class that can tore information about a quadratic expression. The constructor should set all three coefficients to zero, and another method should allow you to change these coefficients.

  • This Question is Closed
  1. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    which language?

  2. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    http://ideone.com/wI0HZ it's very flawed, but that's the idea of doing it. Btw the repr function was just to display the actual polynomial and is not really necessary

  3. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Better to have a more flexible Polynomial class, with fields such as the degree etc, and the repr function, and then have a Quadratic class inherit from that class.

  4. liquifiedkronic
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Sorry for the late response, I needed it in Java.

  5. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    :( I don't really know C++ or Java so well

  6. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy