Site hosted by Angelfire.com: Build your free website today!

C++ BONUS #3C ++

Bonus #3

UCMST

 

 

Konrad Dzwonkiewicz

 

 

1)      Determine a formula to calculate RADIANS from some input degree value (don’t use C++ radians function…crate your own)

 

HINT: put pi as a constant

 

OUTPUT:

 

Please enter an angle in degrees: 40

            RADIAN MEASURE: 3.4906

 

 

 

 

2)      Determine a way to print the roots of a polynomial (entering positive values only)

USE assert to see if determinant is negative to abort

           

            OUTPUT:

 

            Please enter coefficients for the quadratic ax^2+bx+c

            Enter Values on one line (first a then b, then c) ex. 2 –8 -24

      ROOTS = {6,-2}