First, take a deep breath. You're going to be OK, even if it doesn't feel like it right now.
Next, take a look at today's Zen Habits -- http://zenhabits.net/failed/. It can help you set perspective regarding what you've gone through. Money quote: "Someone once said there isn’t failure, only feedback. That means the failure is just a point of information, a part of the learning process. I like to say, it’s not a failure of me as a person, just a failure of my method. Which means I need to change my method."
Take some time (minutes, hours, or days) to identify the intersection of what you like and what you've excelled at. I find I like what I'm good at, so beware that bias.
Are you good at translating tech -> normal people speak? Possibly look to work in consulting.
Were you good at making sales, but bad at the paperwork? Try to develop your own system to get better at the paperwork.
Try to look objectively (meaning without judgement) at your past. What have you learned from your experience? I can promise you, you're not the first person to barely pass a tough CS program, nor will you be the last to get fired for sloppy paperwork. You'll be OK -- in fact, now is the perfect time for you to take your first step in your new direction.
If you need a job right away, I would suggest trying to get a position in any industry that will pay you. Learn the ropes in that industry for a little time while you get stability. You will be a technical wizard in whatever you do, if it involves technology. Once you learn an industry, and gain a little confidence in your capabilities, take a shot at combining your technical abilities with the industry.
Manufacturing, as a for example, relies entirely on technology that is run by people who have very little idea about how to use technology.
And relax. You have a world of options in front of you; they're hard to see because of all the pressure, but they exist.
Be well,
monkeyspaw