An interesting question came across my mind: If it is possible to convert a percentage to a Grade(A,B,C,D, or an F). Firstly, there is an easy method to convert a percentage to a Grade; by using an If and Else loop. However, are there also other methods with which this can be achieved? Arrays, shiftin bits, etc... It would be very interesting to see if there are any non-trivial methods to this.
Chillawowa 0 Newbie Poster
Recommended Answers
Jump to PostUse the ? : operator.
Jump to PostNo, I don't think there are non-trivial ways to do it with a standard grading system, other than the obvious ways which have been listed in this thread already. I don't understand the system you listed, but consider that since 90 and 100 are both usually considered A's, you can't …
All 5 Replies
COKEDUDE 27 Junior Poster in Training
Devoted Hosting 0 Light Poster
Chillawowa 0 Newbie Poster
mrnutty 761 Senior Poster
BestJewSinceJC 700 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.