James Madison served as the fourth President of the United States from 1809 to 1817. Often called the…