The candidate for mayor who receives the majority vote of the qualified electors of the city at large voting in the elections of the city and the candidates for the city council who receive the majority vote of the qualified electors of their respective districts voting in the elections of the city shall be elected to a term of office.