RIVERSIDE – A convicted sex offender who assaulted two female Corona residents was sentenced Friday to 34 years to life in state prison.