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:
- 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
- Program to find the number of region in Planar Graph
- Smallest square formed with given rectangles
- Check if N rectangles of equal area can be formed from (4 * N) integers
- Area of triangle formed by the axes of co-ordinates and a given straight line
- Program for Area Of Square
- Check whether the number formed by concatenating two numbers is a perfect square or not
- Area of a leaf inside a square
- Area of a Circumscribed Circle of a Square
- Area of a square from diagonal length
- Program for Area Of Square after N-th fold
- Area of square Circumscribed by Circle
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.