I just finished my second year of undergraduate studies as a double major in computer engineering and mathematics at the University of Iowa. Although I came in believing that I wanted to become a software engineer, I've become more interested in pursuing math as I learn more about it.
To be completely honest, I was somewhat directionless and unmotivated when I started my studies and I didn't quite achieve the grades that I wanted. I finished my first year with a GPA somewhere around a 3.45 on a 4.0 scale. However, I managed to put forth a lot more effort into my coursework this year, pulling my overall GPA up to a 3.60 (and achieving a 3.8 this last semester).
The problem is that my mathematics GPA is still somewhere around a 3.48. The graduate school at my university requires a 3.4 to pursue doctoral studies in math and (assuming that my grades continue to stay on track) I know I will be able to satisfy that.
My question is, are my grades able to become competitive enough to reasonably pursue a career as a tenure-track professor in math at a state university? I still have two years of undergraduate coursework plus all of graduate school and post-doc studies to make myself more appealing, but if I've already caused too much harm to repair then I'll probably skip graduate school altogether and go into industry as a software engineer.
I don't know all that much about expectations and qualifications for becoming a mathematics professor so I was hoping that somebody who might be a little more knowledgeable here could help give me some guidance.