KabkaCaana
03-06-2012, 04:09 AM
I must be misunderstanding a fundamental aspect of javascript because I have been sitting here scratching my head for an hour trying to figure out why my code produces a nAn for the gpa calculation. I intended the calcutator to erase any entries that are not standard grades, and prompt the user to fill in blanks if there are any. I apologize if the code is too long. I think there is a probably a way to cut it down, so if someone could tell me how that would also be extremely helpful.
P.S. the calculator is supposed to convert the letter grade to the gpa score (A-->4.0) so if someone could explain how it would be done in an array instead that would help. I tried to do it, but I couldn't get that to work. This way is functional albeit long.
My main issue is the calculator's inability to calculate!
Thank you for any responses.
I cannot attach anything so I will include a pastebin link instead:
http://pastebin.com/DfyR46p2
P.S. the calculator is supposed to convert the letter grade to the gpa score (A-->4.0) so if someone could explain how it would be done in an array instead that would help. I tried to do it, but I couldn't get that to work. This way is functional albeit long.
My main issue is the calculator's inability to calculate!
Thank you for any responses.
I cannot attach anything so I will include a pastebin link instead:
http://pastebin.com/DfyR46p2