Chapter

Quadratic Roots Revisited

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How can conditionals prevent a calculated tax liability from becoming negative?

    "The tax program uses conditional statements to calculate a taxpayer’s base tax, child credit, and final tax liability. If the base tax minus the credit is greater than or equal to zero, the total tax

  2. How can conditionals handle invalid and special cases in a quadratic roots program?

    "Let’s return to the quadratic roots program we previously designed that uses the quadratic equation to compute the roots of a quadratic polynomial by reading coefficients a, b, c in from the user. On

Quadratic Roots Revisited | ComputerScienceOne | Bifalgorithm | Bifalgorithm