Quadratic Formula Assignment

From WLCS
Revision as of 08:42, 7 October 2008 by Admin (talk | contribs) (New page: === Quadratic Formula Program === # Create a program, where you prompt the user (ask the user for input) for variables a, b, and c # Calculate both real solutions to the quadratic equatio...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Quadratic Formula Program

  1. Create a program, where you prompt the user (ask the user for input) for variables a, b, and c
  2. Calculate both real solutions to the quadratic equation
  3. Print the quadratic equation: a*x^2 + b*x + c
  4. Print the two real solutions
  5. HINT: exponentiation: x**y (x to the y power)
  1. CHALLENGE: check if the solutions are real or imaginary
  2. CHALLENGE2: print both solutions even if imaginary