Calculating the Area Moment of inertia

How to calculate area moment of inertia of 2D geometry? 

To calculate properties like bending resistance of beam, etc. Area moment of inertia plays a vital role. Thus, it is important to know the steps for calculating the area moment of inertia for 2D geometries. The following resource helps the user with the same.