Department of Computer Science

Problem Solving and Algorithm Design I

Spring Semester 1998

Dr. Maury Eggen

Homework Laboratory Assignment 3:

For the next homework assignment, we shall pretend for the moment
that we like algebra. 

You must prompt the user to enter three numbers from the keyboard.
Assume the numbers are a, b, and c. You must then find the following
information about a quadratic function f(x) = ax^2 + bx + c.
1. Is the equation really quadratic?
2. If it is quadratic, are the zeros of the quadratic real?
3. If the roots of the quadratic are real, what are they?
4. What is the axis of symmetry of the quadratic?
5. Does the graph of the quadratic open up or down?
6. What is the vertex of the quadratic.
7. If the quadratic has complex roots, what are the complex roots?

For this exercise, use the g++ compiler. You must also present internal
documentation, external documentation, source code, and sample execution.
Cover it all with a title page, indicating your name, the section, the
assignment number, and the due date. 

Homework Due Date: Monday, February 2, 1998