A crime is any act, or omission, that violates public law. Public law includes both…