source code for the math 2 grade calculator