Page 486 - CA_Blue( J )_Class10
P. 486
94 System.out.println("Only "+Acc[no].Total_Amt+" amount left in your Account");
95 }
96 else
97 System.out.println("Your are Unauthorized Customer");
98 }
99 private static void DepositAmount() throws IOException
100 {
101 String p;
102 int no,amt;
103 System.out.print("Your Account Number : ");
104 no=Integer.parseInt(x.readLine());
105 System.out.print("Password : ");
106 p=x.readLine();
107 if(no<Ano && p.equals(Acc[no].Password))
108 {
109 System.out.println("Welcome "+Acc[no].Name);
110 System.out.print("Deposit Amount : ");
111 amt=Integer.parseInt(x.readLine());
112 Acc[no].Total_Amt+=amt;
113 }
114 else
115 System.out.println("Your are Unauthorized Customer");
116 }
117 private static void AccountDetails() throws IOException
118 {
119 String p;
120 int no,amt;
121 System.out.print("Your Account No. : ");
122 no=Integer.parseInt(x.readLine());
123 System.out.print("Password : ");
124 p=x.readLine();
125 if(no<Ano && p.equals(Acc[no].Password))
126 {
127 System.out.println("Your Name : "+Acc[no].Name);
484484 Touchpad Computer Applications-X

