Charles City man sentenced to up to five years in prison for