Page 484 - CA_Blue( J )_Class10
P. 484

26    public static Calendar c=Calendar.getInstance();
                27    public static int date=c.get(Calendar.DATE);

                28    public static int month=c.get(Calendar.MONTH);
                29    public static int year=c.get(Calendar.YEAR);

                30    public static InputStreamReader isr=new InputStreamReader(System.in);
                31    public static BufferedReader x=new BufferedReader(isr);

                32    public static int Ano=1;
                33    public static Account Acc[]=new Account[100];

                34    public static void main() throws IOException
                35    {

                36      int ch=1;
                37      NewAccount();
                38      do

                39      {

                40        System.out.println("   Welcome to Your Bank   ");
                41        System.out.println("   --: OPTION MENU :--    ");
                42        System.out.println("   1. Open an Account      ");

                43        System.out.println("   2. Withdraw Money      ");
                44        System.out.println("   3. Deposit Amount      ");

                45        System.out.println("   4. Account Details     ");
                46        System.out.println("   5. Existing Accounts   ");

                47        System.out.println("   6. Exit                ");
                48        System.out.print("Enter Your Choice(1-6) To Proceed: ");

                49        ch=Integer.parseInt(x.readLine());
                50        switch(ch)

                51        {
                52          case 1: OpenAccount(); break;

                53          case 2: WithdrawMoney(); break;
                54          case 3: DepositAmount(); break;

                55          case 4: AccountDetails(); break;
                56          case 5: ExistingAccounts(); break;

                57        }
                58      }while(ch<=5);

                59    }




                482482  Touchpad Computer Applications-X
   479   480   481   482   483   484   485   486   487   488   489