PDA

View Full Version : javascript?


wormhole
04-20-2007, 06:14 PM
I wrote a code which calculates GPA but I can't get it to convert A,,B,C,D,F to 4,3,2,1,0. Any tips of how I can do that would be appreciated.

egblue
04-20-2007, 06:21 PM
just use an if statement?if (grade == 'A') grade = 4;else if (grade == 'b') grade = 3;etc...