You sound burnt out. I don't blame you... it's tough out there.
When I took E&M Physics, I found myself in the department's help lab at least once a week, where TAs would help with questions we had. Try to see if something like that exists for you. Talk to your professor directly, they usually want you to succeed and are much nicer when talking to individuals.
I also wrote programs during my Physics class studying to help reinforce what I learned. e.g. calculating the magnetic force at a point. Try to convince yourself to find a fun application for what you're learning, even if that application is just a way to program it.
And if you don't already, study with friends. I found that studying with friends that also care about their grades helps keep you awake and focused. It gives you a chance to communicate the issues your having out loud with a friend, so you both can learn from each other.
The truth is college isn't for everyone. Trade schools are another option, or entrepreneurial focuses. However, if there is something worthwhile to be in college for, it's a STEM degree, which I would say includes computer science. But, sadly, I see college as a whole as being similar to the Prisoner's dilemma.
If two people have the option of going to college, and Person A goes but Person B doesn't, obviously the Person A has the advantage. You can't cooperate and have both Person A and Person B not go to college, so both must suffer through college to be essentially equal again but at a raised floor and minus 4+ years of their lives (college degrees suffer from inflation, and now seem to be the minimum for getting a STEM job).
My advice is to keep pushing through. Avoid burnout; give yourself a schedule and breaks and keep to that schedule. Dedicate a time for working and a time for relaxation/recreation. Get sleep, and exercise. Eat healthy; don't buy a bunch of prepackaged garbage or fast food to eat every day. Eat non-processed foods, and plenty of vegetables.
(just an example of an article you could find by googling about burnout and how to prevent or mitigate it).
If you manage your time and social life correctly, college doesn't have to be something to suffer through. It can be something challenging, but still fun, and something you will remember fondly when it's over.