Just get a cheap Windows laptop, and only use it for that one class. You can get a 15" HP with 16 GB of RAM for $300 brand new, retail. Use the "Restore" when you're done and give it away to someone who needs a computer.
I'm assuming most people here aren't in the precariat like me. If you are, then get a used Windows laptop, they're even cheaper.