Congress has established minimum and maximum punishments for many crimes which the judge uses to craft a sentence. The United States Sentencing Commissions has produced a set of sentencing guidelines that recommend certain punishments for certain crimes while considering various factors. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.