The judge of the municipal court may punish for any violation of a city ordinance or law by fine not exceeding one thousand dollars ($1,000.00) and the costs of court; imprisonment not to exceed one hundred eighty (180) days; work on the public streets or on such public works as the court may decide, for a period not to exceed thirty (30) days; or by any combination of these punishments in the discretion of the court.