Stomach prob

How to calm your stomach nerves? I'm not sure if it's nerves or what but in the mornings or in some of my classes at school my stomach will make awful noises not growling but like farting noises and sounds like that. I eat breakfast and am fine until I get to class. What should I do or take?  Any suggestions would be great I have exams this week