(a) In this section, the term "violation of this Code" or "violation of any provision of this Code" means: (1) Doing an act that is prohibited or made or declared unlawful, an offense, or a misdemeanor by ordinance or by rule or regulation authorized by ordinance; (2) Failure to perform an act that is required to be performed by ordinance or by rule or regulation authorized by ordinance; or (3) Failure to perform an act if the failure is declared a misdemeanor, an offense, or unlawful by ordinance or by rule or regulation authorized by ordinance. (b) In this section, the term "violation of this Code" or "violation of any provision of this Code" do not include the failure of a county government officer or county government employee to perform an official duty unless this Code specifically provides that failure to perform the duty is to be punishable as provided in this section. (c) Whenever in this Code or in any other ordinance of the county any act is prohibited or is made or declared to be unlawful or an offense, or the doing of any act is required or the failure to do any act is declared to be unlawful, where no specific penalty is provided therefor, the violation of such provision shall be punishable by the imposition of a fine not to exceed $1,000.00, by imprisonment in the county jail for a period of time not to exceed 180 days, or by both such fine and imprisonment, or up to the limits of any penalty provided by state law for the ordinance; and all sentences may be in the alternative and fines may be imposed with the alternative of sentence to imprisonment and labor if the fines are not paid. (d) Each day any violation of this Code or other ordinance shall continue shall constitute a separate offense.