C++ Assignment Programming

SoccerBoss
Category:
Programming
Price: $30 USD

Question description

  1. In this project, we want to write a program, that ask the user for three coefficients a2, a1, and a0, in order to solve any cubic polynomial equation of form: z^3 + a2z^2 + a1z + a0 = 0.

    The formula is explained at: http://mathworld.wolfram.com/CubicFormula.html

    First compute the intermediate variables Q, D, and D.

    If D < 0, they are three solutions z1, z2, and z3. Compute and print out the three solutions

    else compute the intermediate values S and T.

    Now, if D equal to zero and S+T in=s not equal to zero, there are two solutions. Compute and print both solutions

            else there is only one solution: z1

    Submit your source file (.cpp). Any other file yields zero grade.


Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1822 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors