Yes
Yes, a MacBook will do everything you need in your degree.
I am a CS major myself a few years in. I just bought the lowest ($999) white macbook and it is perfect.
The mac side can handle note taking, web browsing, and general needs as well as *nix based programming with C, C++, perl, etc...
You can easily install a copy of Windows XP or Vista (i prefer XP) if you own a retail copy. Just use the built in mac program "Boot Camp Assistant."
This will allow you to dual boot so you can use visual studio, cobol, etc.. as you need it.
The only upgrade I recommend is 2 or 4 GB of RAM. Don't buy from apple though. Get 3rd party RAM. 4 GB of RAM should run you $99. As a CS major, you should have an idea of how to put the RAM in yourself.