The roof is one of the main components in a building. Along with other structural components of a building, the…