The first step is to open the cheat console by pressing CTRL + SHIFT + C. Next, type in "testingcheats on" and hit enter. Now, you need to enable the degree of cheating. To do this, select your Sim and press Shift + click on the degree icon. You will then see a new menu appear with several different options. The first option is "Get Degree Without Doing Coursework". Select this option and your Sim will automatically receive their degree!