The mayor, with the consent of the city council, may appoint a city administrator who shall hold office until his employment is terminated by the mayor, with the consent of the council. The administrator shall, during his employment, be a resident of the city. The administrator shall receive such compensation as the city council may provide. The administrator may be delegated such nonlegislative and nonjudicial functions as the council may provide by ordinance.