/* Sine and Cosine program.
	Displays a table of sine and cosine values for various angles 
	from 0 to 90 degrees                                                                   */

#include <math.h>
#include <iostream.h>

using namespace std;	// October 5, 2001

int main()
{
	const double PI = 3.14;
	const int Width = 6;
	const int Precision = 3;
	cout.setf(ios::fixed);
	cout.precision(Precision);
	const int MaxAngle = 90;
	const int AngleStep = 5;
	cout << " Angle sin() cos()" << endl;
	for (int Angle=0; Angle<=MaxAngle; Angle+=AngleStep) {
		cout.width(Width);
		double RadAngle = (PI/180)*Angle;
		cout << Angle;
		cout.width(Width);
		cout << sin(RadAngle);
		cout.width(Width);
		cout << cos(RadAngle);
		cout << endl;
	}
	return (0);
}


