Consider the coding project at work an investment in yourself. You're right, this isn't college anymore. Your performance at work and in groups directly affects your co-workers perception of you. Sure, if you truly hate the place then you probably won't care, but people are very good at detecting when other people truly dislike their job. This has a full circle impact. Getting yourself into this mentality will only make your experiences at that company less enjoyable for all the wrong reasons. If you actually cannot handle the task that you have been assigned, then speak up. Tell your project manager how you feel. Somewhere along the way you obviously gave them the impression that you were fine with the programming tasks, so they most likely are just not aware of your feelings towards programming. I would just advise against "giving up" and subconsciously forcing yourself out of that position or company.
And of course you can always change jobs. If you dislike this company and can already tell that the big corporate life style isn't your thing then start looking for new jobs. Too early to switch jobs? I'd rather find one that I like now instead of 5 years from now.