The candidate for the office of mayor or councilmember who receives a majority of the votes cast for such office shall be declared duly elected.