View Single Post
  #1 (permalink)  
Old 07-24-2007, 03:29 AM
zoe zoe is offline
Member
 
Join Date: Jul 2007
Posts: 40
zoe is on a distinguished road
What is the best way to represent range of number...
Hi, I am new to JAVA and I am trying to write a simple program for a class I have, the one thing I am stuck on (and maybe I am just over-analyzing) is I have to calculate grades.

For example, B = 79%-89% I am thinking that I should use something like this (in pseudo code):

Code:
if iFinalScore >79 && <89 then cFinalGrade=B
I am not sure if this is the correct way to implement the "and" operator, or if it will work at all any thoughts?
Thanks.
Reply With Quote
Sponsored Links