It produces hormones that regulate the body’s metabolism and help control the heart, muscles and…