1.Any person who violates the terms of an absenteeism prevention plan entered into under section 299.12 , who is referred for prosecution under section 299.12 and is convicted of a violation of any of the provisions of sections 299.1 through 299.5, who violates any of the provisions of sections 299.1 through 299.5, or who refuses to participate in a school engagement meeting under section 299.12 , commits a public offense.
a. A first offense is a simple misdemeanor and a conviction is punishable by imprisonment not exceeding ten days or a fine not exceeding one hundred dollars. The court may order the person to perform not more than forty hours of unpaid community service instead of any fine or imprisonment.b. A second offense is a serious misdemeanor and a conviction is punishable by imprisonment not exceeding twenty days or a fine not exceeding five hundred dollars, or both a fine and imprisonment. The court may order the person to perform unpaid community service instead of any fine or imprisonment.c. A third or subsequent offense is a serious misdemeanor and a conviction is punishable by imprisonment not exceeding thirty days or a fine not exceeding one thousand dollars, or both a fine and imprisonment. The court may order the person to perform unpaid community service instead of any fine or imprisonment.