Whenever, in this code or in any ordinance of the town, an act is prohibited or is made or declared to be unlawful or an offense or a misdemeanor, or wherever, in the code or ordinance, the doing of any act is required or the failure to do any act is declared to be unlawful, and no specific penalty is provided therefor, any person who shall be convicted of any such violation shall be fined no more than $500 or serve no more than 30 days in jail, or both in accordance with SDCL § 9-19-3. Each day any violation of this code or other ordinance continues shall constitute a separate offense.