The way I read it, you should be getting 0%. So I'm missing something on first reading.
The first thing you need to do is get rid of the integer division. change (midterm/250) to ((float)midterm/250). Do that for all of your grade components.
That's getting closer. I replaced them with the Floats, and I also replaced participation with participation2(good eye). For some reason, its still not completely accurate, mathematically. I'm getting 46% when I input 50% assignments, and at the 76% mark, I'm getting 71%.