- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Arc length from given Angle in C++?
An Angle is formed when two rays meet at a point. The point on the plane at which these rays meet is vertex.
Arc of a circle is a portion of the circumference that is described by an angle.
In this problem, we are given an angle of the circle. And we need to find the length of arc using the given diameter of the circle. For example,
Input : Angle = 45° Diameter = 28 Output : Arc = 11
Explanation
Length of arc = (circumference) X (angle/360°)
= (π * d)*(angle/360°)
To make a program that calculates the length of Arc from the given angle and diameter we will apply this formula.
Example
#include <iostream> using namespace std; int main() { double diameter = 28.0; double angle = 45.0; double pi = 22.0 / 7.0; double arc; if (angle >= 360) { cout<< "Angle cannot", " be formed"; } else { arc = (pi * diameter) * (angle / 360.0); cout<<"The length of arc = "<<arc; } return 0; }
Output
The length of arc = 11
- Related Articles
- Arc length from given Angle?
- How To Get the Arc Length from Given Angle in Java?
- What are start angle and end angle of arc in HTML5 canvas?
- Get the arc sine of an angle in Java
- Get the arc cosine of an angle in Java
- In a circle of radius ( 21 mathrm{~cm} ), an arc subtends an angle of ( 60^{circ} ) at the centre. Find the length of the arc. (Use ( pi=22 / 7 ) )
- Arc function in C
- In a circle of radius ( 35 mathrm{~cm} ), an arc subtends an angle of ( 72^{circ} ) at the centre. Find the length of the arc and area of the sector.
- In a circle of radius 21 cm, an arc subtends an angle of $60^{o}$ at the center. Find $( 1)$. The length of the arc $( 2)$ Area of the sector formed by the arc. [use $pi =frac{22}{7}$].
- Find length of the longest consecutive path from a given starting characters in C++
- Count of sub-strings of length n possible from the given string in C++
- Print all sequences of given length in C++
- Get the arc tangent of a given value in Java
- A sector is cut-off from a circle of radius ( 21 mathrm{~cm} ). The angle of the sector is ( 120^{circ} ). Find the length of its arc and the area.
- In a circle of radius 21 cm, an arc subtends an angle of $60^o$ at the centre. Find (i) the length of the arc.(ii) area of the sector formed by the arc.(iii) area of the segment formed by the corresponding chord.

Advertisements