Manuel QUEZON was elected president and was tasked with preparing the country for independence after a 10-year transition .