Page 487 - CA_Blue( J )_Class10
P. 487

128        System.out.println("Balance Amount : "+Acc[no].Total_Amt);
                   129        int rate=(Acc[no].Total_Amt>=20000)?18:10;

                   130        System.out.println("Interest Rate : "+rate+"%");
                   131        int interest=Acc[no].Total_Amt*rate/100;

                   132        System.out.println("Current Balance : "+(Acc[no].Total_Amt+interest));
                   133      }

                   134      else
                   135        System.out.println("Your are Unauthorised Customer");

                   136    }
                   137    private static void ExistingAccounts()

                   138    {
                   139      System.out.println("Acc\tName\t\tDate\t\tTotal_Amt\t\tPassword");
                   140      for(int i=1;i<Ano;i++)

                   141        Acc[i].displayData();

                   142    }
                   143    private static void NewAccount()
                   144    {

                   145    }
                   146  }


                 Output






































                                                                                                                       485
                                                                                                       Sample Project  485
   482   483   484   485   486   487   488   489   490   491   492