Exercise 5: Finale (20%)




Document: Software Engineering 1: Lab Exercises

next Hints
up Session 7: Week 14/15: Functional Decomposition
gif Exercise 4: Refinement (20%)

Exercise 5: Finale (20%)

Modify trig4.c as follows, renaming it as trig5.c.

trig5.c should prompt for an angle in degrees, and then print out the sine, cosine and tangent of this angle. The main() function should be structured to invoke functions called deg_cos() and deg_tan() to calculate the cosine and tangent respectively. You will have to add definitions for these functions, similarly to the definition of deg_sin().



McMullin@eeng.dcu.ie
Tue Apr 30 14:15:37 GMT 1996