B). Is the right answer from my opinion.
Where something is located :)
The main reason for them creating a written code of law was because they had a huge empire and maintaining such an empire required a unified law that could be applied to everyone and every case.
The correct answer in this case would be so that their citizens would be able to see and understand it. This allowed them to familiarize themselves with the law and abide by it if they desired to do so.