Who wrote the hit Three Dog Night song “Joy to the World”?

Culture Trivia Question: Who wrote the hit Three Dog Night song “Joy to the World”?