They are just standard setter and getter member functions. They only set and get the data.
I did, however, realise that the modulo sign just presents the remainder and not the denominator. Doh! Another homer(read: noob) moment. It was working perfectly. I just had to change the equation to something that made sense. line 11 would actually be: a.setlevel((25 + sqrt(625 + 100 * a.getexp())) / 50);