a court determines whether a person accused of breaking the law is guilty or not guilty of a misdemeanor or a felony