I am afraid that, since I have a low UW gpa and class rank, I can't get into a good computer science program. What should I do?

You have B’s. What subjects are those? It might hurt you if they were STEM subjects.