Thursday 28 September 2017

Codingbat Java-Array-3 problems solutions!

Codingbat Java-Array-3>maxSpan (Click Here For The Problem):

Solution code:

public int maxSpan(int[] nums) {
  int largestSpan = -1;
  for(int i=0; i<nums.length ; i++){
      for(int j=nums.length-1; j>=i ; j--){
         if(nums[i] == nums[j]){
            if((j-i) > largestSpan){
              largestSpan = (j-i);
            }
         }
      }
  }
  return largestSpan+1;
}

Logic behind the code :

1] Take a variable whose value indicates the largest span and which we will return at the end as an answer.
2] As we don't know what is it's value initially, so let us assume it as -1.
3] We will now traverse the array from left picking each and every element using a loop and will traverse from rightmost end of the array using another loop.
4] In this way we will check the rightmost occurrence of the element.
5] Now we will subtract the index of the element from the rightmost occurrence of the element.
6] As the array indexing starts from 0, we have to add 1 to our answer.
7] Done!!

Codingbat Java-Array-3>countClumps (Click here for the problem)

Solution code:

public int countClumps(int[] nums) {
  int count = 0;
  boolean gotit = false;
  for(int i=0; i<nums.length-1; i++){
     if(nums[i] == nums[i+1] && (gotit==false)){
       count++;
       gotit = true;
     }
     if(nums[i] != nums[i+1]){
       gotit = false;
     }
  }
  return count;
}

Saturday 27 February 2016

CGPA to Percentage(Mumbai University, 10 point grading system, CBCS scheme)

(Source code that generated following output is available at the botton of the page, the snapshot of circular that proposed the formula for cgpa to percentage conversion is also at the bottom of page)

(Disclaimer: Although the following information of cgpa to percentage conversion is correct and as per Mumbai university circular about 'cgpa to percentage conversion'; the blog writer is not responsible for any issue if occurs due to using these conversions...... Well don't worry guys you can trust the blog ☺ )

cgpa 4.65, percentage = 44.01
cgpa 4.66, percentage = 44.08
cgpa 4.67, percentage = 44.15
cgpa 4.68, percentage = 44.22
cgpa 4.69, percentage = 44.29
cgpa 4.70, percentage = 44.37
cgpa 4.71, percentage = 44.44
cgpa 4.72, percentage = 44.51
cgpa 4.73, percentage = 44.58
cgpa 4.74, percentage = 44.65
cgpa 4.75, percentage = 44.72
cgpa 4.76, percentage = 44.79
cgpa 4.77, percentage = 44.86
cgpa 4.78, percentage = 44.93
cgpa 4.79, percentage = 45.00
cgpa 4.80, percentage = 45.08
cgpa 4.81, percentage = 45.15
cgpa 4.82, percentage = 45.22
cgpa 4.83, percentage = 45.29
cgpa 4.84, percentage = 45.36
cgpa 4.85, percentage = 45.43
cgpa 4.86, percentage = 45.50
cgpa 4.87, percentage = 45.57
cgpa 4.88, percentage = 45.64
cgpa 4.89, percentage = 45.71
cgpa 4.90, percentage = 45.79
cgpa 4.91, percentage = 45.86
cgpa 4.92, percentage = 45.93
cgpa 4.93, percentage = 46.00
cgpa 4.94, percentage = 46.07
cgpa 4.95, percentage = 46.14
cgpa 4.96, percentage = 46.21
cgpa 4.97, percentage = 46.28
cgpa 4.98, percentage = 46.35
cgpa 4.99, percentage = 46.42
cgpa 5.00, percentage = 46.50
cgpa 5.01, percentage = 46.57
cgpa 5.02, percentage = 46.64
cgpa 5.03, percentage = 46.71
cgpa 5.04, percentage = 46.78
cgpa 5.05, percentage = 46.85
cgpa 5.06, percentage = 46.92
cgpa 5.07, percentage = 46.99
cgpa 5.08, percentage = 47.06
cgpa 5.09, percentage = 47.13
cgpa 5.10, percentage = 47.21
cgpa 5.11, percentage = 47.28
cgpa 5.12, percentage = 47.35
cgpa 5.13, percentage = 47.42
cgpa 5.14, percentage = 47.49
cgpa 5.15, percentage = 47.56
cgpa 5.16, percentage = 47.63
cgpa 5.17, percentage = 47.70
cgpa 5.18, percentage = 47.77
cgpa 5.19, percentage = 47.84
cgpa 5.20, percentage = 47.92
cgpa 5.21, percentage = 47.99
cgpa 5.22, percentage = 48.06
cgpa 5.23, percentage = 48.13
cgpa 5.24, percentage = 48.20
cgpa 5.25, percentage = 48.27
cgpa 5.26, percentage = 48.34
cgpa 5.27, percentage = 48.41
cgpa 5.28, percentage = 48.48
cgpa 5.29, percentage = 48.55
cgpa 5.30, percentage = 48.63
cgpa 5.31, percentage = 48.70
cgpa 5.32, percentage = 48.77
cgpa 5.33, percentage = 48.84
cgpa 5.34, percentage = 48.91
cgpa 5.35, percentage = 48.98
cgpa 5.36, percentage = 49.05
cgpa 5.37, percentage = 49.12
cgpa 5.38, percentage = 49.19
cgpa 5.39, percentage = 49.26
cgpa 5.40, percentage = 49.34
cgpa 5.41, percentage = 49.41
cgpa 5.42, percentage = 49.48
cgpa 5.43, percentage = 49.55
cgpa 5.44, percentage = 49.62
cgpa 5.45, percentage = 49.69
cgpa 5.46, percentage = 49.76
cgpa 5.47, percentage = 49.83
cgpa 5.48, percentage = 49.90
cgpa 5.49, percentage = 49.97
cgpa 5.50, percentage = 50.05
cgpa 5.51, percentage = 50.12
cgpa 5.52, percentage = 50.19
cgpa 5.53, percentage = 50.26
cgpa 5.54, percentage = 50.33
cgpa 5.55, percentage = 50.40
cgpa 5.56, percentage = 50.47
cgpa 5.57, percentage = 50.54
cgpa 5.58, percentage = 50.61
cgpa 5.59, percentage = 50.68
cgpa 5.60, percentage = 50.76
cgpa 5.61, percentage = 50.83
cgpa 5.62, percentage = 50.90
cgpa 5.63, percentage = 50.97
cgpa 5.64, percentage = 51.04
cgpa 5.65, percentage = 51.11
cgpa 5.66, percentage = 51.18
cgpa 5.67, percentage = 51.25
cgpa 5.68, percentage = 51.32
cgpa 5.69, percentage = 51.39
cgpa 5.70, percentage = 51.47
cgpa 5.71, percentage = 51.54
cgpa 5.72, percentage = 51.61
cgpa 5.73, percentage = 51.68
cgpa 5.74, percentage = 51.75
cgpa 5.75, percentage = 51.82
cgpa 5.76, percentage = 51.89
cgpa 5.77, percentage = 51.96
cgpa 5.78, percentage = 52.03
cgpa 5.79, percentage = 52.10
cgpa 5.80, percentage = 52.18
cgpa 5.81, percentage = 52.25
cgpa 5.82, percentage = 52.32
cgpa 5.83, percentage = 52.39
cgpa 5.84, percentage = 52.46
cgpa 5.85, percentage = 52.53
cgpa 5.86, percentage = 52.60
cgpa 5.87, percentage = 52.67
cgpa 5.88, percentage = 52.74
cgpa 5.89, percentage = 52.81
cgpa 5.90, percentage = 52.89
cgpa 5.91, percentage = 52.96
cgpa 5.92, percentage = 53.03
cgpa 5.93, percentage = 53.10
cgpa 5.94, percentage = 53.17
cgpa 5.95, percentage = 53.24
cgpa 5.96, percentage = 53.31
cgpa 5.97, percentage = 53.38
cgpa 5.98, percentage = 53.45
cgpa 5.99, percentage = 53.52
cgpa 6.00, percentage = 53.60
cgpa 6.01, percentage = 53.67
cgpa 6.02, percentage = 53.74
cgpa 6.03, percentage = 53.81
cgpa 6.04, percentage = 53.88
cgpa 6.05, percentage = 53.95
cgpa 6.06, percentage = 54.02
cgpa 6.07, percentage = 54.09
cgpa 6.08, percentage = 54.16
cgpa 6.09, percentage = 54.23
cgpa 6.10, percentage = 54.31
cgpa 6.11, percentage = 54.38
cgpa 6.12, percentage = 54.45
cgpa 6.13, percentage = 54.52
cgpa 6.14, percentage = 54.59
cgpa 6.15, percentage = 54.66
cgpa 6.16, percentage = 54.73
cgpa 6.17, percentage = 54.80
cgpa 6.18, percentage = 54.87
cgpa 6.19, percentage = 54.94
cgpa 6.20, percentage = 55.02
cgpa 6.21, percentage = 55.09
cgpa 6.22, percentage = 55.16
cgpa 6.23, percentage = 55.23
cgpa 6.24, percentage = 55.30
cgpa 6.25, percentage = 55.37
cgpa 6.26, percentage = 55.44
cgpa 6.27, percentage = 55.51
cgpa 6.28, percentage = 55.58
cgpa 6.29, percentage = 55.65
cgpa 6.30, percentage = 55.73
cgpa 6.31, percentage = 55.80
cgpa 6.32, percentage = 55.87
cgpa 6.33, percentage = 55.94
cgpa 6.34, percentage = 56.01
cgpa 6.35, percentage = 56.08
cgpa 6.36, percentage = 56.15
cgpa 6.37, percentage = 56.22
cgpa 6.38, percentage = 56.29
cgpa 6.39, percentage = 56.36
cgpa 6.40, percentage = 56.44
cgpa 6.41, percentage = 56.51
cgpa 6.42, percentage = 56.58
cgpa 6.43, percentage = 56.65
cgpa 6.44, percentage = 56.72
cgpa 6.45, percentage = 56.79
cgpa 6.46, percentage = 56.86
cgpa 6.47, percentage = 56.93
cgpa 6.48, percentage = 57.00
cgpa 6.49, percentage = 57.07
cgpa 6.50, percentage = 57.15
cgpa 6.51, percentage = 57.22
cgpa 6.52, percentage = 57.29
cgpa 6.53, percentage = 57.36
cgpa 6.54, percentage = 57.43
cgpa 6.55, percentage = 57.50
cgpa 6.56, percentage = 57.57
cgpa 6.57, percentage = 57.64
cgpa 6.58, percentage = 57.71
cgpa 6.59, percentage = 57.78
cgpa 6.60, percentage = 57.86
cgpa 6.61, percentage = 57.93
cgpa 6.62, percentage = 58.00
cgpa 6.63, percentage = 58.07
cgpa 6.64, percentage = 58.14
cgpa 6.65, percentage = 58.21
cgpa 6.66, percentage = 58.28
cgpa 6.67, percentage = 58.35
cgpa 6.68, percentage = 58.42
cgpa 6.69, percentage = 58.49
cgpa 6.70, percentage = 58.57
cgpa 6.71, percentage = 58.64
cgpa 6.72, percentage = 58.71
cgpa 6.73, percentage = 58.78
cgpa 6.74, percentage = 58.85
cgpa 6.75, percentage = 58.92
cgpa 6.76, percentage = 58.99
cgpa 6.77, percentage = 59.06
cgpa 6.78, percentage = 59.13
cgpa 6.79, percentage = 59.20
cgpa 6.80, percentage = 59.28
cgpa 6.81, percentage = 59.35
cgpa 6.82, percentage = 59.42
cgpa 6.83, percentage = 59.49
cgpa 6.84, percentage = 59.56
cgpa 6.85, percentage = 59.63
cgpa 6.86, percentage = 59.70
cgpa 6.87, percentage = 59.77
cgpa 6.88, percentage = 59.84
cgpa 6.89, percentage = 59.91
cgpa 6.90, percentage = 59.99
cgpa 6.91, percentage = 60.06
cgpa 6.92, percentage = 60.13
cgpa 6.93, percentage = 60.20
cgpa 6.94, percentage = 60.27
cgpa 6.95, percentage = 60.34
cgpa 6.96, percentage = 60.41
cgpa 6.97, percentage = 60.48
cgpa 6.98, percentage = 60.55
cgpa 6.99, percentage = 60.62
cgpa 7.00, percentage = 60.70
cgpa 7.01, percentage = 60.77
cgpa 7.02, percentage = 60.84
cgpa 7.03, percentage = 60.91
cgpa 7.04, percentage = 60.98
cgpa 7.05, percentage = 61.05
cgpa 7.06, percentage = 61.12
cgpa 7.07, percentage = 61.19
cgpa 7.08, percentage = 61.26
cgpa 7.09, percentage = 61.33
cgpa 7.10, percentage = 61.41
cgpa 7.11, percentage = 61.48
cgpa 7.12, percentage = 61.55
cgpa 7.13, percentage = 61.62
cgpa 7.14, percentage = 61.69
cgpa 7.15, percentage = 61.76
cgpa 7.16, percentage = 61.83
cgpa 7.17, percentage = 61.90
cgpa 7.18, percentage = 61.97
cgpa 7.19, percentage = 62.04
cgpa 7.20, percentage = 62.12
cgpa 7.21, percentage = 62.19
cgpa 7.22, percentage = 62.26
cgpa 7.23, percentage = 62.33
cgpa 7.24, percentage = 62.40
cgpa 7.25, percentage = 62.47
cgpa 7.26, percentage = 62.54
cgpa 7.27, percentage = 62.61
cgpa 7.28, percentage = 62.68
cgpa 7.29, percentage = 62.75
cgpa 7.30, percentage = 62.83
cgpa 7.31, percentage = 62.90
cgpa 7.32, percentage = 62.97
cgpa 7.33, percentage = 63.04
cgpa 7.34, percentage = 63.11
cgpa 7.35, percentage = 63.18
cgpa 7.36, percentage = 63.25
cgpa 7.37, percentage = 63.32
cgpa 7.38, percentage = 63.39
cgpa 7.39, percentage = 63.46
cgpa 7.40, percentage = 63.54
cgpa 7.41, percentage = 63.61
cgpa 7.42, percentage = 63.68
cgpa 7.43, percentage = 63.75
cgpa 7.44, percentage = 63.82
cgpa 7.45, percentage = 63.89
cgpa 7.46, percentage = 63.96
cgpa 7.47, percentage = 64.03
cgpa 7.48, percentage = 64.10
cgpa 7.49, percentage = 64.17
cgpa 7.50, percentage = 64.25
cgpa 7.51, percentage = 64.32
cgpa 7.52, percentage = 64.39
cgpa 7.53, percentage = 64.46
cgpa 7.54, percentage = 64.53
cgpa 7.55, percentage = 64.60
cgpa 7.56, percentage = 64.67
cgpa 7.57, percentage = 64.74
cgpa 7.58, percentage = 64.81
cgpa 7.59, percentage = 64.88
cgpa 7.60, percentage = 64.96
cgpa 7.61, percentage = 65.03
cgpa 7.62, percentage = 65.10
cgpa 7.63, percentage = 65.17
cgpa 7.64, percentage = 65.24
cgpa 7.65, percentage = 65.31
cgpa 7.66, percentage = 65.38
cgpa 7.67, percentage = 65.45
cgpa 7.68, percentage = 65.52
cgpa 7.69, percentage = 65.59
cgpa 7.70, percentage = 65.67
cgpa 7.71, percentage = 65.74
cgpa 7.72, percentage = 65.81
cgpa 7.73, percentage = 65.88
cgpa 7.74, percentage = 65.95
cgpa 7.75, percentage = 66.02
cgpa 7.76, percentage = 66.09
cgpa 7.77, percentage = 66.16
cgpa 7.78, percentage = 66.23
cgpa 7.79, percentage = 66.30
cgpa 7.80, percentage = 66.38
cgpa 7.81, percentage = 66.45
cgpa 7.82, percentage = 66.52
cgpa 7.83, percentage = 66.59
cgpa 7.84, percentage = 66.66
cgpa 7.85, percentage = 66.73
cgpa 7.86, percentage = 66.80
cgpa 7.87, percentage = 66.87
cgpa 7.88, percentage = 66.94
cgpa 7.89, percentage = 67.01
cgpa 7.90, percentage = 67.09
cgpa 7.91, percentage = 67.16
cgpa 7.92, percentage = 67.23
cgpa 7.93, percentage = 67.30
cgpa 7.94, percentage = 67.37
cgpa 7.95, percentage = 67.44
cgpa 7.96, percentage = 67.51
cgpa 7.97, percentage = 67.58
cgpa 7.98, percentage = 67.65
cgpa 7.99, percentage = 67.72
cgpa 8.00, percentage = 67.80
cgpa 8.01, percentage = 67.87
cgpa 8.02, percentage = 67.94
cgpa 8.03, percentage = 68.01
cgpa 8.04, percentage = 68.08
cgpa 8.05, percentage = 68.15
cgpa 8.06, percentage = 68.22
cgpa 8.07, percentage = 68.29
cgpa 8.08, percentage = 68.36
cgpa 8.09, percentage = 68.43
cgpa 8.10, percentage = 68.51
cgpa 8.11, percentage = 68.58
cgpa 8.12, percentage = 68.65
cgpa 8.13, percentage = 68.72
cgpa 8.14, percentage = 68.79
cgpa 8.15, percentage = 68.86
cgpa 8.16, percentage = 68.93
cgpa 8.17, percentage = 69.00
cgpa 8.18, percentage = 69.07
cgpa 8.19, percentage = 69.14
cgpa 8.20, percentage = 69.22
cgpa 8.21, percentage = 69.29
cgpa 8.22, percentage = 69.36
cgpa 8.23, percentage = 69.43
cgpa 8.24, percentage = 69.50
cgpa 8.25, percentage = 69.57
cgpa 8.26, percentage = 69.64
cgpa 8.27, percentage = 69.71
cgpa 8.28, percentage = 69.78
cgpa 8.29, percentage = 69.85
cgpa 8.30, percentage = 69.93
cgpa 8.31, percentage = 70.00
cgpa 8.32, percentage = 70.07
cgpa 8.33, percentage = 70.14
cgpa 8.34, percentage = 70.21
cgpa 8.35, percentage = 70.28
cgpa 8.36, percentage = 70.35
cgpa 8.37, percentage = 70.42
cgpa 8.38, percentage = 70.49
cgpa 8.39, percentage = 70.56
cgpa 8.40, percentage = 70.64
cgpa 8.41, percentage = 70.71
cgpa 8.42, percentage = 70.78
cgpa 8.43, percentage = 70.85
cgpa 8.44, percentage = 70.92
cgpa 8.45, percentage = 70.99
cgpa 8.46, percentage = 71.06
cgpa 8.47, percentage = 71.13
cgpa 8.48, percentage = 71.20
cgpa 8.49, percentage = 71.27
cgpa 8.50, percentage = 71.35
cgpa 8.51, percentage = 71.42
cgpa 8.52, percentage = 71.49
cgpa 8.53, percentage = 71.56
cgpa 8.54, percentage = 71.63
cgpa 8.55, percentage = 71.70
cgpa 8.56, percentage = 71.77
cgpa 8.57, percentage = 71.84
cgpa 8.58, percentage = 71.91
cgpa 8.59, percentage = 71.98
cgpa 8.60, percentage = 72.06
cgpa 8.61, percentage = 72.13
cgpa 8.62, percentage = 72.20
cgpa 8.63, percentage = 72.27
cgpa 8.64, percentage = 72.34
cgpa 8.65, percentage = 72.41
cgpa 8.66, percentage = 72.48
cgpa 8.67, percentage = 72.55
cgpa 8.68, percentage = 72.62
cgpa 8.69, percentage = 72.69
cgpa 8.70, percentage = 72.77
cgpa 8.71, percentage = 72.84
cgpa 8.72, percentage = 72.91
cgpa 8.73, percentage = 72.98
cgpa 8.74, percentage = 73.05
cgpa 8.75, percentage = 73.12
cgpa 8.76, percentage = 73.19
cgpa 8.77, percentage = 73.26
cgpa 8.78, percentage = 73.33
cgpa 8.79, percentage = 73.40
cgpa 8.80, percentage = 73.48
cgpa 8.81, percentage = 73.55
cgpa 8.82, percentage = 73.62
cgpa 8.83, percentage = 73.69
cgpa 8.84, percentage = 73.76
cgpa 8.85, percentage = 73.83
cgpa 8.86, percentage = 73.90
cgpa 8.87, percentage = 73.97
cgpa 8.88, percentage = 74.04
cgpa 8.89, percentage = 74.11
cgpa 8.90, percentage = 74.19
cgpa 8.91, percentage = 74.26
cgpa 8.92, percentage = 74.33
cgpa 8.93, percentage = 74.40
cgpa 8.94, percentage = 74.47
cgpa 8.95, percentage = 74.54
cgpa 8.96, percentage = 74.61
cgpa 8.97, percentage = 74.68
cgpa 8.98, percentage = 74.75
cgpa 8.99, percentage = 74.82
cgpa 9.00, percentage = 74.90
cgpa 9.01, percentage = 74.97
cgpa 9.02, percentage = 75.04
cgpa 9.03, percentage = 75.11
cgpa 9.04, percentage = 75.18
cgpa 9.05, percentage = 75.25
cgpa 9.06, percentage = 75.32
cgpa 9.07, percentage = 75.39
cgpa 9.08, percentage = 75.46
cgpa 9.09, percentage = 75.53
cgpa 9.10, percentage = 75.61
cgpa 9.11, percentage = 75.68
cgpa 9.12, percentage = 75.75
cgpa 9.13, percentage = 75.82
cgpa 9.14, percentage = 75.89
cgpa 9.15, percentage = 75.96
cgpa 9.16, percentage = 76.03
cgpa 9.17, percentage = 76.10
cgpa 9.18, percentage = 76.17
cgpa 9.19, percentage = 76.24
cgpa 9.20, percentage = 76.32
cgpa 9.21, percentage = 76.39
cgpa 9.22, percentage = 76.46
cgpa 9.23, percentage = 76.53
cgpa 9.24, percentage = 76.60
cgpa 9.25, percentage = 76.67
cgpa 9.26, percentage = 76.74
cgpa 9.27, percentage = 76.81
cgpa 9.28, percentage = 76.88
cgpa 9.29, percentage = 76.95
cgpa 9.30, percentage = 77.03
cgpa 9.31, percentage = 77.10
cgpa 9.32, percentage = 77.17
cgpa 9.33, percentage = 77.24
cgpa 9.34, percentage = 77.31
cgpa 9.35, percentage = 77.38
cgpa 9.36, percentage = 77.45
cgpa 9.37, percentage = 77.52
cgpa 9.38, percentage = 77.59
cgpa 9.39, percentage = 77.66
cgpa 9.40, percentage = 77.74
cgpa 9.41, percentage = 77.81
cgpa 9.42, percentage = 77.88
cgpa 9.43, percentage = 77.95
cgpa 9.44, percentage = 78.02
cgpa 9.45, percentage = 78.09
cgpa 9.46, percentage = 78.16
cgpa 9.47, percentage = 78.23
cgpa 9.48, percentage = 78.30
cgpa 9.49, percentage = 78.37
cgpa 9.50, percentage = 78.45
cgpa 9.51, percentage = 78.52
cgpa 9.52, percentage = 78.59
cgpa 9.53, percentage = 78.66
cgpa 9.54, percentage = 78.73
cgpa 9.55, percentage = 78.80
cgpa 9.56, percentage = 78.87
cgpa 9.57, percentage = 78.94
cgpa 9.58, percentage = 79.01
cgpa 9.59, percentage = 79.08
cgpa 9.60, percentage = 79.16
cgpa 9.61, percentage = 79.23
cgpa 9.62, percentage = 79.30
cgpa 9.63, percentage = 79.37
cgpa 9.64, percentage = 79.44
cgpa 9.65, percentage = 79.51
cgpa 9.66, percentage = 79.58
cgpa 9.67, percentage = 79.65
cgpa 9.68, percentage = 79.72
cgpa 9.69, percentage = 79.79
cgpa 9.70, percentage = 79.87
cgpa 9.71, percentage = 79.94
cgpa 9.72, percentage = 80.01
cgpa 9.73, percentage = 80.08
cgpa 9.74, percentage = 80.15
cgpa 9.75, percentage = 80.22
cgpa 9.76, percentage = 80.29
cgpa 9.77, percentage = 80.36
cgpa 9.78, percentage = 80.43
cgpa 9.79, percentage = 80.50
cgpa 9.80, percentage = 80.58
cgpa 9.81, percentage = 80.65
cgpa 9.82, percentage = 80.72
cgpa 9.83, percentage = 80.79
cgpa 9.84, percentage = 80.86
cgpa 9.85, percentage = 80.93
cgpa 9.86, percentage = 81.00
cgpa 9.87, percentage = 81.07
cgpa 9.88, percentage = 81.14
cgpa 9.89, percentage = 81.21
cgpa 9.90, percentage = 81.29
cgpa 9.91, percentage = 81.36
cgpa 9.92, percentage = 81.43
cgpa 9.93, percentage = 81.50
cgpa 9.94, percentage = 81.57
cgpa 9.95, percentage = 81.64
cgpa 9.96, percentage = 81.71
cgpa 9.97, percentage = 81.78
cgpa 9.98, percentage = 81.85
cgpa 9.99, percentage = 81.92


Source code of the program for cgpa to percentage conversion (java code):

public class CgpaToPercentage {
    public static double CgpaToPercentage(double cgpa){
        return (7.1*cgpa)+11;
    }
    
    public static void main(String[] args) {
        for(float i =(float) 4.65 ; i<=(float)10.0; i=(float)(i+0.01)){
             System.out.println("cgpa "+String.format("%.2f", i - 0.005)+", percentage = "+String.format("%.2f", CgpaToPercentage(i) - 0.005));
        }     
    }
    
}

Snapshot of the circular released in may 2017 that proposed the cgpa to percentage conversion formula for CBCS scheme of Mumbai University is here: (Also see this link of the official circular by Mumbai University : LINK )