Problem 1: Birthday paradox . The main class is given . The paradox fails while using the random number generated numbers . Why? Because a random number generator generates pure random number while the paradox succeeds since the birthdays are genrally bunched together in few months (society concepts and such stuffs here!!). class birth1 { public static void f ( int n ) { int exp=0,flag=0,itr=0,i,j; int [] a= new int[100]; do{ for(i=0;i0) { n=n-months[i]; continue; } s=n + " / " + (i+1); //return s; break; } return s; } Problem 2: Matrix multiplication for real numbers. class matrix { public static double [ ][ ] multiply( double [ ][ ] a, double [ ][ ] b ) { int n = a.length; double [ ][ ] c = new double [ n ][ n ]; for( int i = 0; i < n; i++ ) // Initialization for( int j = 0; j < n; j++ ) c[ i ][ j ] = 0.0; for( int i = 0; i < n; i++ ) for( int j = 0; j < n; j++ ) for( int k = 0; k < n; k++ ) c[ i ][ j ] += a[ i ][ k ] * b[ k ][ j ]; return c; } public static double [][] randomisation(double [][] a) { int n=a.length; for (int i=0;i