my friend bought this one for 3k https://www.amazon.ca/Asus-Zephyrus-Gaming-Laptop-165Hz/dp/B09SJYZ7MK
if you're doing cs go with a mac book so you can make ios apps. If you're doing comp eng go for something with 16gb of ram a graphics card and 512-1tb hard drive. Price range should be between 1-2k
Buy whatever computer you want, although I would definitely suggest getting a laptop just for the portability. You don't need to install linux or have a mac now that you can enable bash on windows. That should be able to handle any of your first year programming assignments (can install most packages you could in bash) however do note you can't run programs that display GUI's from bash on Windows. To solve that problem later on, I would download virtualbox which will let you install either the SOCS (UoG) distribution of linux or just Ubuntu, or both, whatever. As another user mentioned we also have RDP connections so you could connect to a machine at the school and do your work that way although I find the slight lag too annoying to do any serious work with.
If you're a new student in CS/SE next year, you'll be taking a new course called CIS1300 which is meant for CS/SE majors. Nano or Notepad++ will be good for either one, and you can customize some setting in nano with a .nanorc file. If you are not a CS/SE major, then nano will be more than enough for CIS1500.
My roommate did this, but it's not for everyone.
You may have heard of the tip where you create a dedicated "school" account on your computer to be productive. My roommate bought a second desk as an extension of that idea. They ended up designating a new "office area" in the house solely dedicated to school.
You prime yourself into a different mindset or "profile" when you start doing this. This is in contrast to confusing the existing mindset you have with your current setup (which you also may use for leisure).
This also happens to be why it is a terrible idea to study in bed. We spend a third of our lives sleeping, so the idea of getting rest is ingrained in our beds. Studying in such a space results in no productivity and can even ruin sleep quality as a result.
I understand a lot of our rooms are small though or you don't have space in the house. Try the "school account" idea if your studies involve the computer a lot. I have not done it myself though—you'd want to find out how to remove certain programs and distractions.
Whether you make a "school" user or not, I also suggest using a content blocker such as ColdTurkey to block distracting websites by timer. I don't know if the free version blocks apps, though.