If a defendant who has been convicted of an offense is sentenced to imprisonment, the court shall impose a determinate sentence.