(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 heads of departments and other appointed officers of the city shall be appointed solely on the basis of their respective administrative and professional qualifications. (c) All appointed officers and heads of departments shall receive such compensation as prescribed by ordinance. (d) There shall be a head of each department or agency who shall be its principal officer. Each department head shall, subject to the direction and supervision of the mayor, be responsible for the administration and direction of the affairs and operations of that department or agency. (e) All department heads under the supervision of the mayor shall be nominated by the mayor with confirmation of appointment by the city council. The mayor may suspend or remove department heads under the mayor's supervision, which suspension shall be effective immediately following the mayor's giving written notice of such action and the reasons therefor to the department head involved and to the city council. The department head involved may appeal to the city council which, after a hearing, may override the mayor's action by a vote of three councilmembers.