Any person who shall violate a provision of this Part 2 or shall fail to comply with any of the requirements thereof or who shall erect, construct, alter or repair a building or structure in violation of an approved plan or directive of the Code Enforcement Officer or Township Engineer or a permit or certificate issued under the provisions of this Part 2 shall be guilty of a summary offense punishable by a fine of not more than $1,000 or, upon default in payment of the fine and costs, by imprisonment not exceeding 30 days. Each day that a violation continues shall be deemed a separate offense.