# Java Program to Find Angle on Circumference Subtended by the Chord when the Central Angle Subtended by the Chord is Given

In the previous article, we have discussed about Java Program to Find Angle Subtended by the Chord When the Angle Subtended by Another Chord of Same Length is Given

In this article we are going to see how to find angle on circumference subtended by the chord when the central angle subtended by the chord is given using Java programming language.

## Java Program to Find Angle on Circumference Subtended by the Chord when the Central Angle Subtended by the Chord is Given

Before Jumping into the program directly let’s see how to find angle on circumference subtended by the chord when the central angle subtended by the chord is given.

Suppose there is a circle with center O. It has a chord AB

Angle subtended by chord on center of the circle is AOB.

Lets draw a point D in the circumference of the circle.

The angle subtended by the given chord on the circumference is ADB
So the angle on the circumference is
angle ADB = angle AOC/2

Example:

AOC = 80
ADB = 40

Let’s see different ways to find angle on circumference subtended by the chord when the central angle subtended by the chord is given.

### Method-1: Java Program to Find Angle on Circumference Subtended by the Chord when the Central Angle Subtended by the Chord is Given By Using Static Input Value

Approach:

• Declare an double variable say ‘a’ and assign the value to it, which holds the angular value of the circle at the center.
• Find the angle made at the circumference of the circle using the formula a/2
• Print the result.

Program:

import java.io.*;
class Main
{
public static void main(String [] args)
{
//angle made by the chord wrt the center
double a = 80.2;
// formula to find angle made at the circumference of the circle
double c =  a/2;
System.out.println("The angle made at the circumference of the circle is " + c);
}
}

Output:

The angle made at the circumference of the circle is 40.1

### Method-2: Java Program to Find Angle on Circumference Subtended by the Chord when the Central Angle Subtended by the Chord is Given By Using User Input Value

Approach:

• Declare an double variable say ‘a’ and take the value as user input, it is the angular value of the circle at the center.
• Find the angle made at the circumference of the circle using the formula a/2
• Print the result.

Program:

import java.io.*;
import java.util.Scanner;
class Main
{
public static void main(String [] args)
{
// scanner class obj ref
Scanner s = new Scanner(System.in);
System.out.println("Enter the angle made at the center of the circle in degree");
// to take user input value
double a = s.nextDouble();
// formula to find angle made at the circumference of the circle
double c =  a/2;
System.out.println("The angle made at the circumference of the circle is " + c);
}
}


Output:

Enter the angle made at the center of the circle in degree
90.6
The angle made at the circumference of the circle is 45.3

Are you new to the java programming language? We recommend you to ace up your practice session with these Basic Java Programs Examples

Related Java Programs: