(a) The mayor and council shall annually appropriate, by ordinance, the funds necessary to operate all the various agencies and departments, and to meet the expenses of the city for the next fiscal year as provided in the municipal budget. (b) The mayor and council shall not appropriate funds for any given fiscal year which, in aggregate, exceed a sum equal to the amount of unappropriated surplus expected to have accrued in the city treasury at the beginning of the fiscal year, together with an amount not greater than the total municipal receipts from existing revenue sources anticipated to be collected in the fiscal year, less refunds as estimated in the budget report and amendments thereto. (c) All appropriated funds, except for the mandatory appropriations required by law and those required to meet contractual obligations or the continued appropriation and authorization of state or federal grants, remaining unexpended and not contractually obligated at the expiration of the municipal appropriations ordinance, shall lapse.