Name:   ____________________________  Integrated CS/ Algebra Grade

 

Radicals and Quadratic Formula Program

 

I.      In the definition window, write a Scheme Expression Test for each of the problems to check your radical worksheet.

:    Example:  (= (sqrt 8) (* 2 (sqrt 2)))

:    You should get a true in the interaction window if you worked the problem correctly.

 

II.      Show ALL steps in the design recipe to: 

:    Remember Process (examples) and feedback (test) are essential parts.

 

1)      Write a program that consumes the coefficients for x^2 -  a ,  x - b and the constant c to find the discriminate in the quadratic formula.  

 

2)      Write a program that consumes the coefficients for x^2 -  a ,  x - b and the constant c to check your answers using the quadratic formula.  

:    Hint:  Use the auxiliary function for the discriminate.

 

3)      Write a program to find the length of one side of a right triangle given the length of the hypotenuse and one side.  Check using the new test case method where if your examples were correct, you only get true in the interaction window.