Page 483 - CA_Blue( J )_Class10
P. 483
SAMPLE PROJECT
21 st #Creativity & Innovativeness
BANKING SYSTEM Century #Collaboration & Teamwork
Skills
Write a program to simulate a banking system in which the user can create a new account, withdraw money,
deposit money, check the existing amount in their account and also check how many people have an account in
that bank.
1 import java.io.*;
2 import java.util.*;
3 class Account
4 {
5 String Name,Password;
6 int Ac_Num,Total_Amt;
7 int day,month,year;
8 public Account(String n,int an,int d,int m,int y,int mon,String p)
9 {
10 Name=n;
11 Ac_Num=an;
12 day=d;
13 month=m;
14 year=y;
15 Total_Amt=mon;
16 Password=p;
17 }
18 public void displayData()
19 {
20 System.out.println(Ac_Num+"\t"+Name+"\t\t"+day+"/"+month+"/"+year+"\t"+Total_
Amt+"\t\t\t"+Password);
21 }
22 }
23
24 public class Bank
25 {
481
Sample Project 481

