Validation for the CGPA,percentage

It checks if the enters value is a numerical or not and whether it is
correct according to percentage setup and CGPA’s setup.