Hey guys,
I have just started learning c++, its been a around 2 months now since i am doing my basics. I am trying to design a simple gpa to percentage converter using c++. If anybody has any related knowledge,please share.
GPA is a combination of the value of the class and the grade earned.
Its not directly convertable to % unless you ignore the class value (hours of credit value) part, which effectively makes them all equal value. If you are doing that, I think (its been a while) that your %average of all classes * 5.0 or 4.0 is your GPA, and reverse to go the other way. That may be wrong... you can surely look up the calculation though, its going to be about that simple even if I messed it up.
the code is pretty simple, but note that % is not percent in c++, its remainder. To do %s just use the decimal value .. float pct90 = 0.9 etc. We can help but give it a try.