Exercise 1: The <b>sin()</b> Function (20%)




Document: Software Engineering 1: Lab Exercises

next Exercise 2: Angle Conversion (20%)
up Session 7: Week 14/15: Functional Decomposition
gif Introduction

Exercise 1: The sin() Function (20%)

Develop a program, called trig1.c, which will prompt for an angle value (in radians), and print out the sine of that angle.

Where appropriate, this program should use the functions get_floating_point() and put_floating_point() defined in the example program sum2.c. You can simply cut and past the relevant section of that program into your own program.

This program does not involve defining any additional new functions of your own.



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