Design and implement program to calculate the intersection area of…