5 Replies Latest reply on Dec 27, 2006 3:27 AM by rquero

Hello,

The problem: This is a calculator type of script and I am going nowhere... I want to convert the grade, example A,A+,B,B+into a numeric form. Like A+ is equivalent to 4 and the conversion appear automatically. I have to input a credit and it automatically multiplies with the given numeric grade to another.

• ###### 1. Grade point average
Check out this code !
Cool....
• ###### 2. Re: Grade point average
Thanks for the code, but i need to convert the input grade (example A,A+,B,B+) into a numeric form in a seperate output box. (Example: A+ is = to 4, B=3; if user inputs A+, then the conversion appears automatically in another box).

Next step is to input a credit (e.g. 7) and it automatically multiplies with the above calculated grade (the result is displayed in another output box).

Cheers,
R
• ###### 3. Re: Grade point average
Does this help?

gpa = grade.charAt(1) == "+" ? gpa += .5 : gpa;
gpa = grade.charAt(1) == "-" ? gpa -= .5 : gpa;
return gpa;
}

--
Dave -
www.blurredistinction.com