(a) Except as otherwise provided in this charter, the city council by ordinance shall prescribe the functions or duties and establish, abolish, or alter all nonelective offices, positions of employment, departments, and agencies of the city as necessary for the proper administration of the affairs and government of this city. (b) Except as otherwise provided by this charter or by law, the directors of departments and other appointed officers of the city shall be appointed solely on the basis of their respective administrative and professional qualifications.