Computer programming requires you to know algebra. Even if you dont know that is what you know.
In almost every case, your job will not require you to know or use everything you were forced to learn in school. So just do what you can to get through it if you feel you need a degree as a badge in order to get the job you want. Most companies value similar work experience over education. Unless the field is highly technical. Most computer science jobs are not highly specialize or technical. If you are not excellent at mathematic, then you will not want one of these jobs anyways.
Just do what you have to in order to graduate. This means that you will go to the library and pull up all the old examinations and memorize every questions from the past. You will get the correct solution for each one and practice this over and over again. Even if you dont understand it completely, you will have the process down and you can probably pass a test without really understanding it. It doesnt matter if you know it, because generally, you wont have a job that requires it. But you will end up with a degree to show an employer that you are willing to buckle down and work hard and complete a task over multiple years.
After saying all of this... I think a computer science degree is a waste of time. You can now learn more online then they will ever teach you in a college or university. Most employers will value work experience and practical knowledge over a degree. Most software tools are completely free to download, test, use and learn. All of this can be done for free and you can do it while working at a very easy computing job that does not ask for a degree. And you will not start life with a large debt.