

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Area of a Circumscribed Circle of a Square in C++
In this problem, we will calculate the area of the circumscribed circle of a square when we are given the side of the square. Before we go further let’s revise the basic definitions to understand the concepts better.
Square is a quadrilateral with all sides equal.
The circumscribing circle is a circle touches all the vertices of a polygon.
The area is the quantitative representation of the extent of any two-dimensional figure.
To calculate the area of the circumscribed circle of a square. We need to find the relation between the parameter of the circle and the square.
Now, as in the figure, all the vertices of the square are touching the circle. We can conclude from seeing the figure that the diagonal of the square is equal to the diameter of the circle.
Using this we can derive the relationship between the diameter of the circle and side of the square.
r = (√ (2a^2))/2
r is the radius of the circle and the side of the square.
Now, using the formula we can find the area of the circle.
Area of circle = π*r^2 = π* ((√ (2a^2))^2 / 2 = π * (2 *a ^ 2)/4 = (π*a^2)/2
Now, using this formula we can find the area of the circle.
Algorithm
Step 1 : Calculate area of circle using formula {(3.14 * a * a) /2 } Step 2 : Print the area of the circle
Example
#include <iostream> using namespace std; int main(){ float a = 6; float area = ( (3.14 * a * a )/2) ; cout<<"The area of Circumscribed Circle of a Square of side "<<a<<" is "<<area; return 0; }
Output
The area of Circumscribed Circle of a Square of side 6 is 56.52
- Related Questions & Answers
- Program to calculate the area of an Circle inscribed in a Square
- Area of a leaf inside a square?
- Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- Area of a circle inscribed in a regular hexagon?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Area of a leaf inside a square in C Program?
- Find the area of a circle in C programming.
- Find the Area of a Circle in Java Program
- Area of a square from diagonal length in C++
- Java program to find the area of a circle
- Python Program to find the area of a circle
- Java program to find the area of a square
- Area of circle inscribed within rhombus?