How to calculate grade from the predefined score range

@Thenmozhi, this post discussed previously should help you solve your issue: