A compass is a popular tool among travelers, especially sea farers and military personnel, as it gives them a sense…