A hat is a head covering, it may be worn for protection against the elements, for religious reasons,…