1. procedure Swap to interchange the mantissa and exponent parts of…