+ All Categories
Home > Documents > TPE4001A23CSE 101

TPE4001A23CSE 101

Date post: 08-Apr-2018
Category:
Upload: nikhilzz
View: 221 times
Download: 0 times
Share this document with a friend

of 20

Transcript
  • 8/7/2019 TPE4001A23CSE 101

    1/20

  • 8/7/2019 TPE4001A23CSE 101

    2/20

    ACKNOWLEDGEMENT

    I take this opportunity to present my votes of thanksto all those guidepost who really acted as lighteningpillars to enlighten our way throughout this projectthat has led to successful and satisfactory completionof this study.We are really grateful to our teacher Mr. BalijepaliSivakiran for providing

    us with an opportunity to undertake this project inthis university and providing us with all the facilities.We are highly thankful to him for his active support,valuable time and advice, whole-hearted guidance,sincere cooperation and pains-taking involvementduring the study and in completing the assignment ofpreparing the said project within the time stipulated.Lastly, We are thankful to all those, particularly the

    various friends , who have been instrumental increating proper, healthy and conductive environmentand including new and fresh innovative ideas for usduring the project, their help, it would have beenextremely difficult for us to prepare the project in atime bound framework.

    Name- Nikhil

    Ladha

    Regd. No- 11003993

    Roll no. -RE4001A23

  • 8/7/2019 TPE4001A23CSE 101

    3/20

    TABLE OF CONTENTS

    Introduction

    Proposed system

    Description

    System requirements

    Requirement Analysis

    System Design Source code

    Future scope of project

    References

  • 8/7/2019 TPE4001A23CSE 101

    4/20

    INTRODUCTION

    In the existing system, most of the records are maintained on paper. It becomes veryinconvenient to modify the data. In the existing system, here is a possibility that the same data

    in different registers may have different values which means the entries of the same data do

    not match. This inconsistent state does not supply the concrete information which poses a

    problem in the case information related to particular search record.

    Our project is very useful. User is no longer required to check his register in search of

    records, as now it can be searched over the software by choosing some options. The user need

    not to type in most of the information. He/she is just required to enter the desired options. On

    the whole, it liberates the user from keeping lengthy manual records. In a nutshell, it abates

    the work load of an organization.

    In todays world, no one likes to perform calculations on calculator or manually when

    computer is there. Everyone wants his/her work to be done by computer automatically and

    displaying the result for further manipulations.

    This term paper project is just an application of the language C in developing softwares.

    This is the program for keeping records of the bank ,that is the entire details of the customer,

    savings, how much money he/she can deposit and withdraw from the bank, to open the new

    account, create a new account, display all account holders, balance enquiry etc.

  • 8/7/2019 TPE4001A23CSE 101

    5/20

    PROPOSED SYSTEM

    The following documentation is a project the BANKING . It is a detailed summary of allthe drawbacks of the old system and how the new proposed system overcomes these

    shortcomings. The new system takes into account the various factors while designing a new

    system. It keeps into the account the Economical bandwidth available for the new system.

    The foremost thing that is taken care of is the Need and Requirements of the User.

    DESCRIPTION

    Before developing software we keep following things in mind that we can develop powerful

    and quality software

    PROBLEM STATEMENT

    o Problem statement was to design a module:

    o Which is user friendly

    o Which will restrict the user from accessing other users data.

    o Which will help user in viewing his data and privileges.

    o Which will help the administrator to handle all the changes.

    FUNCTIONS TO BE PROVIDED

    The system will be user friendly and completely menu driven so that the users shall have no

    problem in using all options.

    o The system will be efficient and fast in response.

    o The system will be customized according to needs.

    o Create new account

    o Search, edit and display customer details

    o Display account holders

    o Deposit money

    o Withdraw money

    o Balance enquiry

    SYSTEM REQUIRMENTS

    Operating system: MS Windows XP or Windows Vista

    Language: C Language

    Processor: Pentium IV Processor

    RAM: 512 MB

    Hard disk: 5 GB

  • 8/7/2019 TPE4001A23CSE 101

    6/20

    REQUIREMENT ANALYSIS

    This process is adopted when management of the system development, Personnel decide thatthe particular system needs improvement. The system development life cycle is the set of

    activities, carried out by the analyst, designers and users to develop and implement a system.

    The systems that are present in the nature follow common life cycle pattern. For example

    consider the raining system. Initially the rain falls into the river, river flows into sea, the sea

    water evaporates to form vapors, the vapors form clouds which again bring rain. Similarly

    consider a man made system initially a system is analyzed, designed and made operational by

    the efforts of system analysis. After successful operation or a number of users, the system

    becomes less and less effective by change in the environment. So these changes have to be

    incorporated in to the system by minor modifications. So the general activities from the life

    cycle of the system are given below:

    Selection and identification of the system to be studied

    Preliminary study

    Defining the system

    Design and development of the system

    Implementation of the system

  • 8/7/2019 TPE4001A23CSE 101

    7/20

    SYSTEM DESIGN

    Then we began with the design phase of the system. System design is a solution, a HOWTO approach to the creation of a new system. It translates system requirements into ways by

    which they can be made operational. It is a translational from a user oriented document to a

    document oriented programmers. For that, it provides the understanding and procedural

    details necessary for the implementation. Here we use Flowchart to supplement the working

    of the new system. The system thus made should be reliable, durable and above all should

    have least possible maintenance costs. It should overcome all the drawbacks of the Old

    existing system and most important of all meet the user requirements.

    Welcome to the project on banking

    Enter

    your

    choice

    11?

    Create account Customer details Deposit withdraw

    Do you want to

    continue?

    START

    STOP

    Balance enquiry

  • 8/7/2019 TPE4001A23CSE 101

    8/20

    SOURCE CODE

    # include # include

    # include

    # include //library header file

    int dmenu(); //main menu

    void dadd(); //add to list

    void dfind(); //search from the list

    void dedit(); //edit the record

    void ddel(); //delete from the list

    void ddisp(); //display all

    void ddisp1();//display1

    void ddisp2();//display2void dwith();

    void ddepo();

    void dcurrent_with();

    void dcurrent_depo();

    void deposit();

    void withdrawal();

    struct dnode {

    int num,bal,check;

    char dlname[20], dfname[20], dtel[15];

    struct dnode *dnext;

    };typedef struct dnode node;

    node *dstart, *dtemp;

    int i=5000,chk=1,j=15000;

    int dmenu()

    {

    int dch;

    gotoxy(30,5);

    printf(" BANKING DATABASE ");

    gotoxy(30,6);

    printf(" ================ ");

    gotoxy(3,24);

    gotoxy(27,10);

    printf(" 1. Create a new account");

    gotoxy(27,11);

    printf(" 2. Search customer details");

    gotoxy(27,12);

    printf(" 3. Edit customer details");

    gotoxy(27,13);

    printf(" 4. Delete a customer");

    gotoxy(27,14);

    printf(" 5. Display all account holders ");gotoxy(27,15);

  • 8/7/2019 TPE4001A23CSE 101

    9/20

    printf(" 6. Deposit money");

    gotoxy(27,16);

    printf(" 7. Withdrawal money");

    gotoxy(27,17);

    printf(" 8. Balance Enquiry");

    gotoxy(27,18);printf(" 9. Exit ");

    gotoxy(27,21);

    printf(" Enter your choice(1-9):");

    gotoxy(55,21);

    scanf("%d", &dch);

    return dch;

    }

    void dadd()

    {

    int type;

    node *dptr,*dprev;dtemp=(node *)malloc(sizeof(node));

    printf("\nWhich type of account you want to create?\n1->Savings\n2->Current\nenter

    your choice : ");

    scanf("%d",&type);

    if(type==1)

    {

    do{

    printf("\nYour Account No:");

    dtemp->num=i;

    printf("%d",dtemp->num);

    i++;

    }while(i>10000);

    printf("\nFirst name: ");

    scanf("%s", dtemp->dfname);

    printf("Last name:");

    scanf("%s", dtemp->dlname);

    printf("Telephone No.: ");

    scanf("%s", dtemp->dtel);

    a:

    printf("Deposit Sum:");

    scanf("%d",&dtemp->bal);if(dtemp->baldnext=NULL;

    if(dstart==NULL) dstart=dtemp;

    else {

    dprev=dptr=dstart;

    while(strcmp(dtemp->dfname,dptr->dfname)>0){

    dprev=dptr;dptr= dptr->dnext;

  • 8/7/2019 TPE4001A23CSE 101

    10/20

    if (dptr == NULL) break;

    }

    if(dptr==dprev) {

    dtemp->dnext=dstart;

    dstart=dtemp;

    }else if(dptr==NULL)

    dprev->dnext=dtemp;

    else {

    dtemp->dnext=dptr;

    dprev->dnext=dtemp;

    }

    }

    ddisp1();

    }

    else if(type==2)

    {do{

    printf("\nYour Account No:");

    dtemp->num=j;

    printf("%d",dtemp->num);

    j++;

    }while(j>20000);

    printf("\nFirst name: ");

    scanf("%s", dtemp->dfname);

    printf("Last name:");

    scanf("%s", dtemp->dlname);

    printf("Telephone No.: ");

    scanf("%s", dtemp->dtel);

    m:

    printf("Deposit Sum:");

    scanf("%d",&dtemp->bal);

    if(dtemp->baldnext=NULL;if(dstart==NULL) dstart=dtemp;

    else {

    dprev=dptr=dstart;

    while(strcmp(dtemp->dfname,dptr->dfname)>0){

    dprev=dptr;

    dptr= dptr->dnext;

    if (dptr == NULL) break;

    }

    if(dptr==dprev) {

    dtemp->dnext=dstart;

    dstart=dtemp;}

  • 8/7/2019 TPE4001A23CSE 101

    11/20

    else if(dptr==NULL)

    dprev->dnext=dtemp;

    else {

    dtemp->dnext=dptr;

    dprev->dnext=dtemp;

    }}

    printf("Your provided Cheque nos.%d to %d",chk,chk+19);

    ddisp2();

    }

    }

    void dfind()

    {

    node *dptr;

    int no,num;

    if(dstart==NULL) {

    printf("\n\t\t\tNO ACCOUNT DATABASE....\n");getch();

    return;

    }

    printf("Enter the account No : ");

    scanf("%d",&no);

    dptr=dstart;

    while(dptr->num!=no)

    {

    dptr= dptr->dnext;

    if (dptr == NULL) break;

    }

    if(dptr!=NULL)

    {

    if(dptr->num>=5000 && dptr->numnum==no)

    {

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\n\t\tYou are a SAVINGS account holder of our bank");

    printf("\n\t\tAccount number: %d",dptr->num);printf("\n\t\tFirst name: %s", dptr->dfname);

    printf("\n\t\tLast name:%s", dptr->dlname);

    printf("\n\t\tTelephone No.: %s", dptr->dtel);

    printf("\n\t\tYour Balance: %d",dptr->bal);

    printf("\n\t\t------------------------------\n");

    }

    }

    else{

    printf("\n\n");

    printf("\t\t------------------------------\n");

    if(dptr->num==no){

  • 8/7/2019 TPE4001A23CSE 101

    12/20

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\n\t\tYou are a CURRENT account holder of our bank");

    printf("\n\t\tAccount number: %d",dptr->num);

    printf("\n\t\tFirst name: %s", dptr->dfname);

    printf("\n\t\tLast name:%s", dptr->dlname);

    printf("\n\t\tTelephone No.: %s", dptr->dtel);printf("\n\t\tYour Balance: %d",dptr->bal);

    chk=1;

    printf("\n\t\tCheque nos:%d to %d",chk,chk+19);

    printf("\n\t\t------------------------------\n");

    }

    }

    }

    else

    {

    printf("No Matching Records Found .......\n");

    }getch();

    }

    void deposit()

    {

    int no;

    node *dptr,*dprev;

    if(dstart==NULL) {

    printf("\n\t\t\tNO ACCOUNT DATABASE....\n");

    getch();

    return;

    }

    printf("Enter your account no : ");

    scanf("%d",&no);

    dptr=dstart;

    while(dptr->num!=no)

    {

    dptr= dptr->dnext;

    if (dptr == NULL) break;

    }

    if(dptr!=NULL){

    if(dptr->num>=5000 && dptr->num

  • 8/7/2019 TPE4001A23CSE 101

    13/20

    }

    void ddepo()

    {

    node *dptr;

    int bal;

    printf("\t\t\n-----------------------------------------------\n");printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\nAccount No:%d \n",dptr->num);

    printf("First Name : %s\n",dptr->dfname);

    printf("Last Name : %s\n",dptr->dlname);

    printf("Phone Number : %s\n",dptr->dtel);

    printf("Your Balance : %d\n",dptr->bal);

    printf("Deposit Amount:");

    scanf("%d",&bal);

    dptr->bal+=bal;

    printf("Your New balance:%d",dptr->bal);

    getch();}

    void dcurrent_depo()

    {

    node *dptr;

    int bal,ch;

    printf("\t\t\n-----------------------------------------------\n");

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\nAccount No:%d \n",dptr->num);

    printf("First Name : %s\n",dptr->dfname);

    printf("Last Name : %s\n",dptr->dlname);

    printf("Phone Number : %s\n",dptr->dtel);

    printf("Your Balance : %d\n",dptr->bal);

    printf("\nHow do you wish to deposit?\n1->cash\n2->cheque\nEnter your choice : ");

    scanf("%d",&ch);

    if(ch==1)

    {

    printf("Deposit Amount:");

    scanf("%d",&bal);

    dptr->bal+=bal;

    printf("Your New balance:%d",dptr->bal);

    }else if(ch==2)

    {

    do{

    printf("\nYour Check No:");

    dtemp->check=chk;

    printf("%d\n",dtemp->check);

    chk++;

    }while(chk>21);

    printf("Deposit Amount:");

    scanf("%d",&bal);

    dptr->bal+=bal;printf("Your New balance:%d",dptr->bal);

  • 8/7/2019 TPE4001A23CSE 101

    14/20

    }

    getch();

    }

    void withdrawal()

    {

    node *dptr;int no;

    if(dstart==NULL) {

    printf("\n\t\t\tNO ACCOUNT DATABASE....\n");

    getch();

    return;

    }

    printf("Enter the account No : ");

    scanf("%d",&no);

    dptr=dstart;

    while(dptr->num!=no){

    dptr= dptr->dnext;if (dptr == NULL) break;

    }

    if(dptr!=NULL)

    {

    if(dptr->num>=5000 && dptr->numdlname);

    printf("\nAccount No:%d \n",dptr->num);

    printf("First Name : %s\n",dptr->dfname);

    printf("Last Name : %s\n",dptr->dlname);

    printf("Phone Number : %s\n",dptr->dtel);

    printf("Your Balance : %d\n",dptr->bal);

    b:

    printf("Withdrawal Amount:");

    scanf("%d",&bal);if((dptr->bal-bal)

  • 8/7/2019 TPE4001A23CSE 101

    15/20

    {

    printf("INSUFFICIENT FUND-A minimum of Rs.500/- should be maintained\n");

    goto b;

    }

    dptr->bal-=bal;

    printf("Your New balance:%d",dptr->bal);getch();

    }

    void dcurrent_with()

    {

    node *dptr;

    int no,bal,ch;

    printf("\t\t\n-----------------------------------------------\n");

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\nAccount No:%d \n",dptr->num);

    printf("First Name : %s\n",dptr->dfname);

    printf("Last Name : %s\n",dptr->dlname);printf("Phone Number : %s\n",dptr->dtel);

    printf("Your Balance : %d\n",dptr->bal);

    printf("\nHow do you wish to deposit?\n1->cash\n2->cheque\nEnter your choice : ");

    scanf("%d",&ch);

    if(ch==1)

    {

    b:

    printf("Withdrawal Amount:");

    scanf("%d",&bal);

    if((dptr->bal-bal)bal-=bal;

    printf("Your New balance:%d",dptr->bal);

    }

    else if(ch==2)

    {

    do{

    printf("\nYour Check No:");dtemp->check=chk;

    printf("%d\n",dtemp->check);

    chk++;

    }while(chk>21);

    c:

    printf("Withdrawal Amount:");

    scanf("%d",&bal);

    if((dptr->bal-bal)

  • 8/7/2019 TPE4001A23CSE 101

    16/20

    dptr->bal-=bal;

    printf("Your New balance:%d",dptr->bal);

    }

    getch();

    }

    void dedit(){

    node *dptr;

    int no,bal;

    if(dstart==NULL) {

    printf("\n\t\t\tNO ACCOUNT DATABASE....\n");

    getch();

    return;

    }

    printf("Enter number to Edit : ");

    scanf("%d",&no);

    dptr=dstart;while(dptr->num!=no){

    dptr= dptr->dnext;

    if (dptr == NULL) break;

    }

    if(dptr!=NULL) {

    printf("\t\t\n-----------------------------------------------\n");

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\nOld First Name : %s", dptr->dfname);

    printf("\nNew First Name : ");

    scanf("%s", dptr->dfname);

    printf("\nOld Last Name : %s", dptr->dlname);

    printf("\nNew Last Name : ");

    scanf("%s", dptr->dlname);

    printf("\nPhone Number : %s", dptr->dtel);

    printf("\nNew Phone Number : ");

    scanf("%s", dptr->dtel);

    printf("\nOld Balance : %d", dptr->bal);

    m:

    printf("\nNew Balance : ");

    scanf("%d", &bal);

    if(balbal=bal;

    }

    else {

    printf("No Matching Records Found .......\n");

    }

    getch();

    }void ddel()

  • 8/7/2019 TPE4001A23CSE 101

    17/20

    {

    node *dptr,*dprev,*dtemp;

    int no;

    char dyn='n';

    if(dstart==NULL) {

    printf("\n\t\t\tNO ACCOUNT DATABASE....\n");getch();

    return;

    }

    printf("Enter your account no to delete : ");

    scanf("%d",&no);

    dprev=dptr=dstart;

    while(dptr->num!=no){

    dprev=dptr;

    dptr= dptr->dnext;

    if (dptr == NULL) break;

    }if(dptr!=NULL){

    printf("\nDeleting Record.....Confirm [y/n]: ");

    dyn=getch();

    printf("\n\n---------------------------------------------------------");

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\nAccount No : %d\n",dptr->num);

    printf("First Name : %s\n",dptr->dfname);

    printf("Last Name : %s\n",dptr->dlname);

    printf("Phone Number : %s\n",dptr->dtel);

    printf("Balance : %d\n",dptr->bal);

    printf("---------------------------------------------------------");

    if(dyn=='y') {

    if (dptr==dstart) {

    dtemp=dstart->dnext;

    free(dstart);

    dstart=dtemp;

    }

    else {

    dtemp=dptr->dnext;

    free(dptr);

    dprev->dnext=dtemp;}

    printf("\n\n1 Record Deleted....");

    }

    else

    printf("\n\nRecord not Deleted....");

    }

    else {

    printf("\nNo Matching Records Found .......");

    }

    getch();

    }void ddisp()

  • 8/7/2019 TPE4001A23CSE 101

    18/20

    {

    node *dptr;

    if(dstart==NULL) {

    printf("\n\t\t\tNO ACCOUNT DATABASE....\n");

    getch();

    return;}

    clrscr();

    printf("\t\t------------------------------\n");

    for(dptr=dstart; dptr!=NULL; dptr=dptr->dnext) {

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dptr->dlname);

    printf("\n\t\tAccount number: %d",dptr->num);

    printf("\n\t\tFirst name: %s", dptr->dfname);

    printf("\n\t\tLast name:%s", dptr->dlname);

    printf("\n\t\tTelephone No.: %s", dptr->dtel);

    printf("\n\t\tYour Balance: %d",dptr->bal);

    printf("\n\t\t------------------------------\n");}

    getch();

    }

    void ddisp1()

    {

    printf("\n\n");

    printf("\t\t------------------------------\n");

    printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dtemp->dlname);

    printf("\n\t\tYou are a SAVINGS account holder of our bank");

    printf("\n\t\tAccount number: %d",dtemp->num);

    printf("\n\t\tFirst name: %s", dtemp->dfname);

    printf("\n\t\tLast name:%s", dtemp->dlname);

    printf("\n\t\tTelephone No.: %s", dtemp->dtel);

    printf("\n\t\tYour Balance: %d",dtemp->bal);

    printf("\n\t\t------------------------------\n");

    getch();

    }

    void ddisp2()

    {

    printf("\n\n");

    printf("\t\t------------------------------\n");printf("\n\t\tHELLO %s WELCOME TO OUR BANK", dtemp->dlname);

    printf("\n\t\tYou are a CURRENT account holder of our bank");

    printf("\n\t\tAccount number: %d",dtemp->num);

    printf("\n\t\tFirst name: %s", dtemp->dfname);

    printf("\n\t\tLast name:%s", dtemp->dlname);

    printf("\n\t\tTelephone No.: %s", dtemp->dtel);

    printf("\n\t\tYour Balance: %d",dtemp->bal);

    chk=1;

    printf("\n\t\tCheque nos:%d to %d",chk,chk+19);

    printf("\n\t\t------------------------------\n");

    getch();}

  • 8/7/2019 TPE4001A23CSE 101

    19/20

    void main()

    {

    int dch;

    dstart=(node *)malloc(sizeof(node));

    dstart=NULL;

    do{clrscr();

    dch=dmenu();

    clrscr();

    switch(dch) {

    case 1: dadd();

    break;

    case 2: dfind();

    break;

    case 3: dedit();

    break;

    case 4: ddel();break;

    case 5:

    ddisp();

    break;

    case 6:

    deposit();

    break;

    case 7:

    withdrawal();

    break;

    case 8:

    dfind();

    break;

    }

    }while(dch!=9);

    }

  • 8/7/2019 TPE4001A23CSE 101

    20/20

    FUTURE SCOPE OF THE PROJECT

    Our project will be able to implement in future after making some changes and modificationsas we make our project at a very low level. So the modifications that can be done in our

    project are:-

    This project can be implement only at small bank branches. It cannot be used for large scale

    bank purposes.

    REFERENCES:-

    www.google.com Universal search websitewww.wikipedia.com Educational search website

    Programming with C Book by Byron S. Gottrified

    http://www.google.com/http://www.wikipedia.com/http://www.google.com/http://www.wikipedia.com/

Recommended