Given the length of the side of a square a, the task is to find the area of the shaded region formed by the intersection of four semicircles in a square as shown in the image below:
Input: a = 10
Input: a = 19
Approach: Area of the shaded region will be:
Area(semicircle1) + Area(semicircle2) + Area(semicircle3) + Area(semicircle4) – Area(square).
Since all semicircles are of same radius, therefore, area of all semicircles will be equal. So, the above formula can be written as:
4*(Area of Semicircle) – Area(Square)
The area of a semicircle is (3.14 * r2) / 2 where r is the radius of the semicircle which is equal to a / 2.
Hence, Area of the shaded region = 4 * (3.14 * (a * a) / 8 ) – a * a
Below is the implementation of the above approach:
GeeksforGeeks has prepared a complete interview preparation course with premium videos, theory, practice problems, TA support and many more features. Please refer Placement 100 for details
- Program to find the area of a Square
- Program to find the surface area of the square pyramid
- Find number of square of area Z which can be built in a matrix having blocked regions
- Maximum number of line intersections formed through intersection of N planes
- Check if N rectangles of equal area can be formed from (4 * N) integers
- Smallest square formed with given rectangles
- Program to find the number of region in Planar Graph
- Area of triangle formed by the axes of co-ordinates and a given straight line
- Program for Area Of Square
- Area of a Circumscribed Circle of a Square
- Program for Area Of Square after N-th fold
- Area of a leaf inside a square
- Sum of Area of all possible square inside a rectangle
- Area of square Circumscribed by Circle
- Area of a square from diagonal length
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.