Page 612 - Computer science 868 Class 12
P. 612

50       if(number[i][1]>=h)
                51          a=i;

                52       }
                53       System.out.print(number[a][0]);

                54       number[a][0]=0;
                55          }

                56       }
                57       // BestFour class started from here

                58       class BestFour extends Iscscores
                59       {

                60           BestFour()
                61           {
                62               super();

                63           }

                64
                65           void bestsubject()
                66           {

                67               int l=number[0][1],s=number[0][1];
                68               int pt=0,code,j=0,c=0;

                69               input();
                70               //total points and lowest marks

                71               for(int i=0;i<6;i++)
                72               {

                73                   k=i;

                74                    System.out.println("Subject  Code  =  "+number[i][0]+", \t Marks =
                                       "+number[i][1]+", \t Points = "+point());
                75                   pt=pt+point();
                76                   if(s>number[i][1])

                77                   s=number[i][1];
                78               }

                79               System.out.println("Total Points = "+pt);
                80               System.out.println("Best 4 subjects");
                81               do

                82               {

                83                   for(int i=0;i<6;i++)



                610610  Touchpad Computer Science-XII
   607   608   609   610   611   612   613   614   615   616   617