Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

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.

OpenStudy (anonymous):

which language?

OpenStudy (anonymous):

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

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

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

OpenStudy (anonymous):

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

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!