i have this code

//*****************************************************
//Angles.java
//
//
//
//*****************************************************
import java.util.Scanner;

public class Angles
{
	public static void main (String[] args)
	{
		double degree=1/360;
	    double minutes=1/60;
		double seconds=1/60;
		double PI=3.14159;;
		Scanner scan = new Scanner(System.in);

		// takes the first angles from the user

		System.out.print("Enter the Degrees of the first angle < 360: ");

		int Angle1 = scan.nextInt();

		// takes the first minutes from the user

		System.out.print("Enter the Minutes of the first angle < 60: ");

		int Minutes1 = scan.nextInt();

		// takes the first seconds from the user

		System.out.print("Enter the Seconds of the first angle < 60: ");

		int Seconds1 = scan.nextInt();

		// takes the second angles from the user

		System.out.print("Enter the Degrees of the second angle < 360: ");

		int Angle2 = scan.nextInt();

		// takes the second minutes from the user

		System.out.print("Enter the Minutes of the second angle < 60: ");

		int Minutes2 = scan.nextInt();

		// takes the second seconds from the user

		System.out.print("Enter the Seconds of the second angle < 60: ");

		int Seconds2 = scan.nextInt();

		// adds the seconds

		int SecondsTotal = (Seconds1 + Seconds2);

		SecondsTotal = 	SecondsTotal % 60;

		// adds the minutes

		int MinutesTotal = (Minutes1 + Minutes2 + (SecondsTotal % 60));

		MinutesTotal = MinutesTotal % 60;

		// adds the angles

		int AngleTotal = (Angle1 + Angle2 + (MinutesTotal % 60));

		AngleTotal = AngleTotal % 360;

		// prints the angles, minutes, seconds to the user

		System.out.println(Angle1 + "deg" + Minutes1 + "'" + Seconds1 + "'' + " + Angle2 + "deg" + Minutes2 + "'" + Seconds2 + "'' + " + " = " + AngleTotal + " " + MinutesTotal + " " + SecondsTotal);
		System.out.print("Convert the Degrees of the first angle to decimal equivalent");
	    int decimalAngle1=Angle1;
		System.out.print("Convert the Minutes of the first angle to decimal equivalent");
		int decimalMinutes1=Minutes1 / 60;
		System.out.print("Convert the seconds of the first angle to decimal equivalent");
		int decimalSeconds1=Seconds1 /(60*60);
		System.out.print("Convert the Degrees of the second angle to decimal equivalent");
		int decimalAngle2=Angle2;
		System.out.print("Convert the Minutes of the second angle to decimal equivalent");
		int decimalMinutes2=Minutes2 / 60;
		System.out.print("Convert the seconds of the second angle to decimal equivalent");
		int decimalSeconds2=Seconds2 / (60*60);
		System.out.print("Convert first angle,minutes1,seconds1 to decimal equivalent");
System.out.println(Angle1 + "deg" + (Minutes1 / 60) + "'" + "(seconds1 / (60 * 60))");
System.out.print("Convert second angle,minutes2,seconds2 to decimal equivalent");
System.out.println(Angle2 + "deg"+ (Minutes2 / 60) + "'" + "(seconds2 / (60*60))");




	}
}

but the thing is it i not converting to decimal and some one to give me the source code onconverting from the decimal to radians and then back to degree?

Asong,

That looks like JSP.

This is JavaScript / DHTML / AJAX.

Suggest you move/repost in correct section.

Airshow

Asong,

That looks like JSP.

This is JavaScript / DHTML / AJAX.

Suggest you move/repost in correct section.

Airshow

Actually it is Java. Moving to correct forum section.
@Airshow in the future if you find and believe post do not belong to the section can you please flag it? Thanx

Will do, Peter.

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.