(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 officers of the city shall be appointed solely on the basis of their respective administrative and professional qualifications. (c) All appointed officers and directors of departments shall receive such compensation as prescribed by ordinance. (d) There shall be a department head for each department of the city who shall be its principal officer. Each department head shall, subject to the direction and supervision of the city manager, be responsible for the administration and direction of the affairs and operations of his or her department. (e) All department heads shall be appointed by, and serve at the pleasure of, the city manager.