Answer:
The primary purpose of any government is to uphold and protect the fundamental human rights of freedom, equality, peace, and justice for its people.
Explanation:
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.
Help maintain control and the goverment can control riots with private accounts
hope this helps