0% found this document useful (0 votes)
184 views

Compter Icse Projest IX

This project creates a Java application for a basic banking system. The application provides a menu for users to choose from options like creating an account, withdrawing money, depositing money, and checking their account balance. The program uses classes, objects, variables and control structures like if-else statements to implement the banking functions. It allows for multiple user accounts to be created and stored in an array. The project provided hands-on experience in developing, debugging and running a Java application to solve a real world problem.

Uploaded by

rajaprasad2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views

Compter Icse Projest IX

This project creates a Java application for a basic banking system. The application provides a menu for users to choose from options like creating an account, withdrawing money, depositing money, and checking their account balance. The program uses classes, objects, variables and control structures like if-else statements to implement the banking functions. It allows for multiple user accounts to be created and stored in an array. The project provided hands-on experience in developing, debugging and running a Java application to solve a real world problem.

Uploaded by

rajaprasad2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

COMPUTER

APPLICATION
PROJECT

ICSE 2018 – 2019

BANKING SYSTEM

BY: -( Your Name)


CLASS: IX

ROLL NO:

1
ACKNOWLEDGEMENT
This Project would not have been possible without the guidance and the help of
several individuals who in one way or another contributed and extended their
valuable assistance in the preparation and completion of this study.

First and foremost, I express utmost gratitude to our computer Teacher (L.Durga
Prasad) whose inputs and encouragement has been my inspiration as I hurdle
over the obstacles in the completion of this project work.

I would specially like to thank our Lab-in charge/Teacher Mr D. Charles Sir,for


providing enough lab sessions to ensure proper editing and execution of the
project program.

I thank all the members of the family who always had a kind concern and
consideration regarding all my project and academic requirements.

Last but not the least, I thank my classmates for all the cooperation and resources
they extended to me. I specially thank to our Principal Sir( B.Israel) for his
selfless interest in my project.

Name –

Class - IX

2
TABLE OF CONTENTS

1 Introduction

2 Program Statement

3 Program

4 Variable Description

5 Conclusion

6 Bibliography

3
INTRODUCTION
This is to meet the Internal Assessment requirements of ICSE 2016-2017
Computer Applications paper. Apart from this, it is a great learning experience
too.

This project is a Java application which generates a menu for the user to choose
from available Room types from the Hotel.

I choose this topic because this gives a good acquaintance with the pattern and
the standard of programming questions in the board exam. Some aspects covered
in this project are:

 Menu Driven Program


  If-Else Statements
 Processing Strings
  Concluding program with a glossary
 Defining and calling functions

Apart from just theoretical scripting of a program, this project actually coerces
us to edit, compile, debug and run our application. Many syntactical and
practical program issues are implicitly understood while accomplishing the
assignment.

4
PROGRAM STATEMENT

Create a Java application which generates a menu for the user

to choose from the following options:-

Choice 1: creating an account

Choice 2: Withdraw

Choice 3: deposit

Choice 4: checking balance


PROGRAM
import java.io.*;
import java.util.*;
class Account
{
String Name,Password;
int AccNo,Money;
int dd,mm,yy;
public Account(String n,int an,int d,int m,int y,int mon,String p)
{
Name=n;
AccNo=an;
dd=d;
mm=m;
yy=y;
Money=mon;
Password=p;
}
public void displayData()
{

System.out.println(AccNo+"\t"+Name+"\t\t"+dd+"/"+mm+"/"+yy+"\t"+Money+"\t\t"+Pass
word);
}
}

public class Bank


{
public static Calendar c=Calendar.getInstance();
public static int date=c.get(Calendar.DATE);
public static int month=c.get(Calendar.MONTH);
public static int year=c.get(Calendar.YEAR);
public static InputStreamReader isr=new InputStreamReader(System.in);
public static BufferedReader x=new BufferedReader(isr);
public static int Ano=1;
public static Account Acc[]=new Account[100];
public static void main() throws IOException
{
int ch=1;
startAccount();
do
{
System.out.println(" Welcome to State Bank ");
System.out.println(" --: OPTION MENU :-- ");
System.out.println(" 1. Create Account ");
System.out.println(" 2. Withdrawl ");
System.out.println(" 3. Deposited ");
System.out.println(" 4. Checking Account ");
System.out.println(" 5. Checking Master ");
System.out.println(" 6. Exit ");
System.out.print( "Enter Your Choice(1-6) : ");
ch=Integer.parseInt(x.readLine());
switch(ch)
{
case 1: createAccount(); break;
case 2: withdrawl(); break;
case 3: deposit(); break;
case 4: checkAccount(); break;
case 5: checkMaster(); break;
}
}while(ch<=5);
}
private static void createAccount() throws IOException
{
Calendar c=Calendar.getInstance();
int date=c.get(Calendar.DATE);
int month=c.get(Calendar.MONTH);
int year=c.get(Calendar.YEAR);
String n,p;
int m;
System.out.println("Your Account Number is : "+Ano);
System.out.print("Your Name : ");
n=x.readLine();
System.out.print("Opening Balance : ");
m=Integer.parseInt(x.readLine());
System.out.print("Your Password : ");
p=x.readLine();
Acc[Ano]=new Account(n,Ano,date,month,year,m,p);
Ano++;
}
private static void withdrawl() throws IOException
{
String p;
int no,amt;
System.out.print("Your Account Number : ");
no=Integer.parseInt(x.readLine());
System.out.print("Password : ");
p=x.readLine();
if(no<Ano && p.equals(Acc[no].Password))
{
System.out.println("Welcome "+Acc[no].Name);
System.out.print("Withdrawl Amount : ");

amt=Integer.parseInt(x.readLine());
if(amt<=Acc[no].Money)
Acc[no].Money-=amt;
else
System.out.println("Only "+Acc[no].Money+" amount left in your Account");
}
else
System.out.println("Your are Unauthorized Customer");
}
private static void deposit() throws IOException
{
String p;
int no,amt;
System.out.print("Your Account Number : ");
no=Integer.parseInt(x.readLine());
System.out.print("Password : ");
p=x.readLine();
if(no<Ano && p.equals(Acc[no].Password))
{
System.out.println("Welcome "+Acc[no].Name);
System.out.print("Deposit Amount : ");
amt=Integer.parseInt(x.readLine());
Acc[no].Money+=amt;
}
else
System.out.println("Your are Unauthorized Customer");
}
private static void checkAccount() throws IOException
{
String p;
int no,amt;
System.out.print("Your Account No. : ");
no=Integer.parseInt(x.readLine());
System.out.print("Password : ");
p=x.readLine();
if(no<Ano && p.equals(Acc[no].Password))
{
System.out.println("Your Name : "+Acc[no].Name);
System.out.println("Balance Amount : "+Acc[no].Money);
int rate=(Acc[no].Money>=20000)?18:10;
System.out.println("Interest Rate : "+rate+"%");
int interest=Acc[no].Money*rate/100;
System.out.println("Current Balance : "+(Acc[no].Money+interest));
}
else
System.out.println("Your are Unauthorized Customer");
}

private static void checkMaster()


{
System.out.println("Acc\tName\t\tDate\t\tMoney\t\tPassword");
for(int i=1;i<Ano;i++)
Acc[i].displayData();
}
private static void startAccount()
{
Acc[Ano]=new Account("Sachin",Ano,date,month,year,500,"ABC"); Ano++;
Acc[Ano]=new Account("Sourav",Ano,date,month,year,500,"XYZ"); Ano++;
Acc[Ano]=new Account("Shewag",Ano,date,month,year,500,"MNO"); Ano++;
}
}
Variable Description

Variable Data type Description


ch Integer Enter choice 1 to 6 to select an option.
name String Accept user’s name
m Integer Accept month from calendar class
d Integer Accept date from calendar class
y Integer Accept year from calendar class
accno Integer Account number of user
money Double Total money
rate Integer Rate of interest
password String Users password
dd Integer Date of account created
mm Integer Month of account created
yy Integer Year of account created
i Integer For increment or decrement in loops
Ano Integer To auto create and store account number

23
CONCLUSION
This project has been a great tutor as far as practical aspects of programming are concerned.

I planned the program with my classmates and then discussed it with my teachers. After

drafting the source code, I punched it in the computer followed by debugging and testing it,

both at home and school. Subsequently, I was able to get an error free code to put in my

project.

This has not only drilled me on the subject but also taught me things like team work,

time management, and research work and presentation skills. These are the lessons for my

life, which will always stay with and help me in my career.

24
BIBLIOGRAPHY
These are the followed books I have referred to for completing my project:-

  Understanding Computer Applications by Pandey & Dey,APC


 Guided computer applications by S.K.Gaur, D.N publications

25

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy