public class Polar
{
public static void main (String [] args)
{
double degrees45 = 45.0;
double radians45 = Math.toRadians (degrees45);
System.out.println ("The sine of " + degrees45 + "degrees is " + (Math.sin (radians45)));
System.out.println ("The cosine of " + degrees45 + "degrees is " + (Math.cos (radians45)));
double degrees90 = 90.0;
double radians90 = Math.toRadians (degrees90);
System.out.println ("\nThe sine of " + degrees90 + "degrees is " + (Math.sin (radians90)));
System.out.println ("The cosine of " + degrees90 + "degrees is " + (Math.cos (radians90)));
double degrees135 = 135.0;
double radians135 = Math.toRadians (degrees135);
System.out.println ("\nThe sine of " + degrees135 + "degrees is " + (Math.sin (radians135)));
System.out.println ("The cosine of " + degrees135 + "degrees is " + (Math.cos (radians135)));
double degrees180 = 180.0;
double radians180 = Math.toRadians (degrees180);
System.out.println ("\nThe sine of " + degrees180 + "degrees is " + (Math.sin (radians180)));
System.out.println ("The cosine of " + degrees180 + "degrees is " + (Math.cos (radians180)));
double degrees270 = 270.0;
double radians270 = Math.toRadians (degrees270);
System.out.println ("\nThe sine of " + degrees270 + "degrees is " + (Math.sin (radians270)));
System.out.println ("The cosine of " + degrees270 + "degrees is " + (Math.cos (radians270)));
}
}