ATM in C

Embed Size (px)

Citation preview

  • 8/18/2019 ATM in C

    1/46

    B12101135B12101135

    Class code: 

    BSCS-I

    Lecturer: 

    Badr Sami 

  • 8/18/2019 ATM in C

    2/46

    ABSTRACT

  • 8/18/2019 ATM in C

    3/46

     The adoption of Electronic Banking bycommercial enterprises has been in existencesince the mid 90s, mch greater in nmber

    de to lo!er operating costs associated !ithit" Electronic banking has initially been in the form of atomatic teller machinesand telephone transactions"#ore recently, it has been transfer made bythe $nternet, a ne! deli%ery channel forbanking ser%ices that bene&ts both cstomersand banks" $nternet banking system ser%icescan inclde' (pen an accont, Balanceen)iry, *e)est for +he)e book, Bene&ciarypayments E-T., /ie!ing monthly"-rthermore, cstomers application forelectronic banking facilities is expanding as

    the cost sa%ings on transactions o%er the$nternet are signi&cant"

     ACKNOWLEDGEMENT 

    -irst and foremost $ am e%er gratefl to my llah to!hom $ o!e my life" $ !old also like to thank myparents for gi%ing me the opportnity to stdy at

    the ni%ersity of karachi"

  • 8/18/2019 ATM in C

    4/46

    $ !ish to express my deep sense of gratitde to or

    gide and respected Sir Badr Sami for his

    %alable gidance to prepare the proect and in

    assembling the proect material"

    $ am %ery thankfl for his faithfl blessings and for

    pro%iding necessary and related facilities re)ired

    for or compter proect &le"

    $n last $ also !ant to thank those directly or

    indirectly took interest to complete my proect &le"

    SUBMISSION

    roect report on 4Banking Management

    System

    6bmitted of the compter practical

    2013

    (f 

    +lass B6+67$

    -or the practical fl&llment of the

  • 8/18/2019 ATM in C

    5/46

    re)irement for the syllabs"

    6bmitted by' Unsa Jawaid

     

    B12101135

    CRTI!ICAT

    +erti&ed that "nsa #awaid ha%e ndertaken

    the proect entitled,

    $Bank Management System%the proect sbmitted by her is the otcome

    of the !ork carried ot by her dring the

    academic session"

     This is to frther certify that she ha%e !ork

    geninely condcting the experiment and!ork pt by her is the original and otcome of 

    her o!n e8orts"

  • 8/18/2019 ATM in C

    6/46

    Mr& Badr Sami

    $+6 lect".

    CONTNTS

    6"no Topics page

    1" $ntrodction :2" ims for application;

    3" roposed (becti%es""9atabase >esign"1:

    11" 6creen shots""1;12" rocessing and /alidation"""2:13" E * diagrams291

  • 8/18/2019 ATM in C

    7/46

    General Overview of the Problem:

     A bank is a commercial or state institut ion that provides f nancial services , i n c l u d i n g i s s u i n gm o n e y i n o r m o c o i n s , b a n k n o t e s o rd e b i t c a r d s , receiving deposits o money, lending moneyand processing transactions. A comme rcial bank accep tsdeposits rom customers and in turn makes loans basedon those deposits. Some banks (called Banks o issue issuebanknotes a s l e g a l t e n d e r . ! a n y b a n k s o " e ra n c i l l a r y f n a n c i a l s e r v i c e s t o m a k e additional

     proft# or e$ample: selling insurance products, investment products or stock broking .%urrently in most &ur isdict ions

    commerc ial banks are regulated and r e ' u i r e p e r m i s s i o n t o o p e r a t e . p e r a t i o n a l a u t h o r i t yi s g r a n t e d b y b a n k regulatory authori ti es and

     provides right to conduct the most undamentalbanking services such as accepting deposits and making loans. Acommercial bank is usual ly def ned as an inst itut ionthat provides selected banking services )ithout meeting thelegal defnition o bank .Banks have a long history, and havein*uenced economy and politics o r c e n t u r i e s . I n

    h i s t o r y, t h e p r i m a r y p u r p o s e o a b a n k ) a s t o p r o v i d e l i'uidity to trading companies. Banksadvanced unds to al lo) business to purchaseinventory, and col lected those unds back )ith interest )hen the goods are sold. +or centuries, the banking industryonly dealt )ith business not customers. %o mmerciallending today is a very intense activity, )ith bankscareul ly analying the f nancial condit ion o itsbusiness cl ients to determine the level o r isk in eachloan transaction. Banking services have e$panded to

    include services directed at individuals and risks in these muchsmaller transactions are pooled.

     In today-s )orld , the )ay o unctioning and managing the

    system has been totally changed. here is a sudden and adrupt

  • 8/18/2019 ATM in C

    8/46

    changes in the structure, maintenance and modifcation,

    handling, leveling inside every system. /ithout managing system

    through computer applications and programming, the

    development o inrastructures are unfnished. here are many

    errors and dra)backs )ithout use o computer programming andapplications.

      As )e kno) that, 0necessity is the mother o

    invention0, so in today-s challenging )orld, every system is

    developed and launched by the use o computer sot)are and

     programming.

     Aim or this application:

    he pro&ect that )e have undertaken aims to develop a banking

    system that is clean, user1riendly and multi1unctional.2evelopment o this application includes a number o felds suchthat user eels comortable and the system appears as dynamicto him. he pro&ect 3Banking System0 includes the ollo)ingunctionalities: 

      ransactions can be done )ith minimum user events.

      All transactional details and accounts are stored in fles onstable storage.

      %ustomers can vie) their o)n account details and can usethem as necessary 

      %ustomer can in'uire an account and can in'uire aboutinterest 

  • 8/18/2019 ATM in C

    9/46

      All customer-s data are stored in fles on a stable storage

      Account holders have to pass through a login system to

    enter their accounts

      his system possess pass)ord1protected administrative

    access# thus preventing the )hole management systemrom unauthoried access

      o provide *e$ibility or secure and save transaction.

      +or better perormance.

      4educing man po)er.

      +or doing )ork more accurately.

      +aster perormance.

    5roposed System And b&ectives:

      he application )ill be e$tremely benefcial or

    the %ustomers intending to use and operate their bank account

    and )ill get various benefts in the feld o management oaccounts on a clean and user1riendly platorm.

     3Bank Account System0, is a simple application, )hich is

    especially generated and designed or the bank in order to enter

    the applicant inormation about his or her bank account and can

  • 8/18/2019 ATM in C

    10/46

     perorm other unction like currency change. It is user name and

    I2 protected as )ell.

    +ollo)ing are the ma&or ob&ectives behind the ne) proposedsystem:

    •  It creates a user riendly environment, )here a normal user

    can access through all the benefts o the system.•  It provides security rom unauthoried access, only admin or 

    authoried users are access granted to the system.

    •  It increases e6ciency and saves the time.•  7o any danger and obstacles rom e$ternal entities.

    •  8asy access o saved data inside the system.

    •  %omple$ Banking operations and ransaction operations aree6ciently handled by the application

    •  It is cost e"ective

    •  It has ease o use along )ith complete reerence

    •  It is highly secured and less time consuming# hence time

    )astage can be avoided•  9p to date records o the customers are maintained by theauthority.

    5roblem description:

      he Bank !anagement System is

    an application or maintaining a person-s account in a bank. he

    system provides the access to the costumer to create an

    account, deposit)ithdra) the cash rom his account, also to

  • 8/18/2019 ATM in C

    11/46

    convert currency. he ollo)ing documentation provides the

    specifcation o the system.

    @e are mainly concerned !ith de%eloping a bankingsystem !here a +stomer can sbmit hisAher depositamont to bank if heAshe has an accont or can create ane! accont in th is bank" +stomer can also %ie! thestats and change crrency of hisAher bank accont, can %ie!accont balance" (ne can easily maintain the abo%e things ifheAshe has an accont by login throgh his ni)e accontnmber.

    !odule description:

    module descriptionCreate File Selecting this create a ne) fle

    or the user by accepting input

    such as account number, name

    and amount Oe! Accou!t pens the ne) account or the

    user by accepting input such as

    account number, name and

    minimum balanceSearc" 8nables to search or the details

    o the given account number 

    Deosit  5rovides option to deposit

    amount rom the given account

    number Wit"dra# 5rovides option to )ithdra)

    amount rom the given account

  • 8/18/2019 ATM in C

    12/46

    number 

    $ie# Accou!t  2isplays only one account

    detail at a time

    Curre!c% E&c"a!'e 5rovides option to e$change

    currency o amount

    Input Specifcation:

    Struct Inormation

    S(!o 

    $aria)le

    Name

    Descriti 

    o!

    Data

    T%e

    Si*e

    ;. acc

  • 8/18/2019 ATM in C

    13/46

    =. name Applicantname

    char =>

    ?. bal Applicantbalance *oat @

    +ile Specifcation:

    Name Descritio! Data

    t%e" fle pointer to create account +ile 5ointer  

    p fle pointer to deposit amount +ile 5ointer  

    p fle pointer to )ithdra) amount +ile 5ointer  

    p fle pointer to vie) details o

    applicant 

    +ile 5ointer 

  • 8/18/2019 ATM in C

    14/46

    p fle pointer to e$change currency +ile 5ointer  

    p fle pointer to e$it system +ile 5ointer  

    Screen 2esign:

      utput screen design:

  • 8/18/2019 ATM in C

    15/46

  • 8/18/2019 ATM in C

    16/46

    (BE+T$/E6'

    Input 2esign is the process o converting a user1orienteddescription o the input into a computer1based system. his

    design is important to avoid errors in the data input process and

    sho) the correct direction to the management or getting correct

    inormation rom the computeried system.

    It is achieved by creating user1riendly screens or the data entry

    to handle large volume o data. he goal o designing input is to

    make data entry easier and to be ree rom errors. he data entry 

    screen is designed in such a )ay that all the data manipulatescan be perormed. It also provides record vie)ing acilities.

    /hen the data is entered it )ill check or its validity. 2ata can be

    entered )ith the help o screens. Appropriate messages are

     provided as )hen needed so that the user )ill not be in a maie

    o instant. hus the ob&ective o input design is to create an input

    layout that is easy to ollo).

     A 'uality output is one, )hich meets the re'uirements o the end

    user and presents the inormation clearly. In output design it is

    determined ho) the inormation is to be displaced or immediate

    need and also the hard copy output. It is the most important and

    direct source inormation to the user. 86cient and intelligent

    output design improves the system-s relationship to help user

    decision1making. 2esigning computer output should proceed inan organied, )ell thought out manner# the right output must be

    developed )hile ensuring that each output element is designed

    so that people )ill fnd the system can use easily and e"ectively "

  • 8/18/2019 ATM in C

    17/46

    >TB6E >E6$CD'

      A database is an organied mechanism that has the capability o storing inormation through )hich a user can retrieve stored

    inormation in an e"ective and e6cient manner. he data is the

     purpose o any database and must be protected. he database

    design is a t)o level process. In the frst step, user re'uirements

    are gathered together and a database is designed )hich )ill

    meet these re'uirements as clearly as possible. his step is called

    Inormation evel 2esign and it is taken independent o any

    individual 2B!S. In the second step, this Inormation level designis transerred into a design or the specifc 2B!S that )ill be used

    to implement the system in 'uestion. his step is called 5hysical

    evel 2esign, concerned )ith the characteristics o the specifc

    2B!S that )ill be used. A database design runs parallel )ith the

    system design" The organiation of the data in the database is

    aimed to achie%e the follo!ing t!o maor obecti%es"

    ϖ >ata $ntegrity

    ϖ >ata independenceDormaliation is the process of decomposing the attribtes in an

    application, !hich reslts in a set of tables !ith %ery simple

    strctre" The prpose of normaliation is to make tables as

    simple as possible" Dormaliation is carried ot in this system for

    the follo!ing reasons"

    • To strctre the data so that there is no repetition of data , this

    helps in sa%ing"

    • To permit simple retrie%al of data in response to )ery andreport re)est"

    • To simplify the maintenance of the data throgh pdates,

    insertions, deletions"

    • To redce the need to restrctre or reorganie data !hich ne!

  • 8/18/2019 ATM in C

    18/46

    application

    re)irements arise"

    Screen Shots:

    /elcome screen

  • 8/18/2019 ATM in C

    19/46

  • 8/18/2019 ATM in C

    20/46

    %reating account

  • 8/18/2019 ATM in C

    21/46

  • 8/18/2019 ATM in C

    22/46

    ogging in as e$isting customer 

  • 8/18/2019 ATM in C

    23/46

  • 8/18/2019 ATM in C

    24/46

    2epositing Amount 

  • 8/18/2019 ATM in C

    25/46

    /ithdra)ing Amount 

  • 8/18/2019 ATM in C

    26/46

    Cie)ing 2etails

  • 8/18/2019 ATM in C

    27/46

    %onverting %urrency 

  • 8/18/2019 ATM in C

    28/46

    5rocessing and validation:

    !ain menu:

      here are number o options regarding users to creatinga ne) account or logging in as e$isting customer to access the

    acilities system providing or e$it the system ater accessing the

    user re'uirements.

    %reating ne) account:

      All the re'uirements should be flled )ith

     proper )ith correct identifcation such as account number, name

    and initial deposit.

    ogging in as e$isting customer:

    %orrect account number should be

    re'uired to access through e$isting customer other)ise this

    acility is not e$ecutable. here are also number o options

    regarding users to avail the acilities system is giving to the user.

    2epositing and /ithdra)ing account:

    his re'uired a amount customer )ant to deposit or )ithdra) and

    sho) the current balance ater e$ecuting customer-s

    re'uirement.

  • 8/18/2019 ATM in C

    29/46

    Cie)ing details:

      %orrect account number should be re'uired in order

    to vie) details o customer-s account .I not entered correct

    account number, then it can-t be accessed.

    %onverting currency:

      his re'uired a number o money user )ant to

    convert and also re'uired the name o currency user )ish to

    convert in.

    9ni'ueness:

      8ach account number should be uni'ue throughout all

    the e$isting records. 7ame should be o character type and

    account number should be o digit. %haracter and digits are not

    allo)ed.

    %hecking o sie:

      Account number cannot be greater

    than = o sie.

  • 8/18/2019 ATM in C

    30/46

    7ame can-t be greater than => characters.

    8 4 2iagrams

    8 4 2iagram or creating account 

  • 8/18/2019 ATM in C

    31/46

    8 4 2iagram or depositing and

    )ithdra)ing amount 

  • 8/18/2019 ATM in C

    32/46

    8 4 2iagrams or vie)ing details

  • 8/18/2019 ATM in C

    33/46

    8 4 2iagram or currency converter 

  • 8/18/2019 ATM in C

    34/46

    5rogramming esting

    est 5lan:

  • 8/18/2019 ATM in C

    35/46

    S(!o( Test O)+ecti,e

    ;. o check )hether program runs or not.

    =.o check i the program menu displays all menu

    options or not.

    ?. o check all options are right or not.

    @. o check account )as created or not.

    D. o check i the program add amount ater depositing.

    E. o check i the program subtract amount ater

    )ithdra)ing.F. o check i Gvie) detail- option sho)s the ino or not.

    H. o check i currency converter )orks properly or not.

    . o check i the e$it option )orks or not.

    ;>. o check )hether menu options return back or not.

    ;;. o check )hether menu is opened ater enteringcorrect account number.

    ;=. o check )hether msg o 3account no. is not valid0 prompt or not )hen incorrect account no. is entered.

    ;?. o check i the color te$t are displayed or not.

    ests:

  • 8/18/2019 ATM in C

    36/46

    est %ase ;

    est b&ective o check )hether program runs or not.

    est 2ata 4unning the program.

    8$pected 4esult !ain screen should display successully.

    est 4esult !ain screen appears correctly.

    %onclusion 8$pected result matches actual result.

    est %ase =

    est b&ective o check i the program menu displays all menu

    options or not.

    est 2ata pen the main menu8$pected 4esult All the options should be displayed correctly

    )ith serial order 

    est 4esult !enu options are displayed in right order 

    %onclusion 8$pected result matches actual result.

  • 8/18/2019 ATM in C

    37/46

    est %ase ?

    est b&ective o check all options are right or not.

    est 2ata pen menus

    8$pected 4esult All options are right 

    est 4esult All options are right and displayed correctly.

    %onclusion 8$pected result matches actual result.

    est %ase @

    est b&ective o check account )as created or not.

    est 2ata 8nter account number.

    8$pected 4esult Bank account must be created.

    est 4esult Account )as successully created

    %onclusion 8$pected result matches actual result.

  • 8/18/2019 ATM in C

    38/46

    est %ase D

    est b&ective o check i the program add amount ater

    depositing.est 2ata 2eposit amount  

    8$pected 4esult Amount must be added in bank balance

    est 4esult Bank balance )as updated successully.

    %onclusion 8$pected result matches actual result.

    est %ase E

    est b&ective o check i the program subtract amount ater)ithdra)ing.

    est 2ata /ithdra) amount.

    8$pected 4esult Amount must be subtracted rom bank balance.

    est 4esult Bank balance )as updated successully.

    %onclusion 8$pected result matches actual result.

  • 8/18/2019 ATM in C

    39/46

    est %ase F

    est b&ective o check i Gvie) detail- option sho)s the ino

    or not.est 2ata Cie) detail.

    8$pected 4esult 2etails must be sho)

    est 4esult 2etails appear correctly.

    %onclusion 8$pected result matches actual result.

    est %ase H

    est b&ective o check i currency converter )orks properlyor not.

    est 2ata 8nter currency.

    8$pected 4esult Amount must be converted according to

    desired currency.

    est 4esult %urrency converted successully.

    %onclusion 8$pected result matches actual result.

  • 8/18/2019 ATM in C

    40/46

    est %ase

    est b&ective o check i the e$it option )orks or not.

    est 2ata 4un program.

    8$pected 4esult 8$it program using option.

    est 4esult 5rogram e$its.

    %onclusion 8$pected result matches actual result.

    est %ase ;>

    est b&ective o check )hether menu options return back or

    not.est 2ata 4un program.

    8$pected 4esult !enu must be returns.

    est 4esult !enu returns.

    %onclusion 8$pected result matches actual result.

  • 8/18/2019 ATM in C

    41/46

    est %ase ;;

    est b&ective o check )hether menu is opened ater

    entering correct account number.

    est 2ata 8nter account number.

    8$pected 4esult !enu must be open.

    est 4esult !enu opens.

    %onclusion 8$pected result matches actual result.

    est %ase ;=

    est b&ective o check )hether msg o 3account no. is not

    valid0 prompt or not )hen incorrect account

    no. is entered.

    est 2ata 8nter )rong account number.

    8$pected 4esult !essage must appear.

    est 4esult !essage appears.

    %onclusion 8$pected result matches actual result.

  • 8/18/2019 ATM in C

    42/46

    est %ase ;?

    est b&ective o check i the color te$t are displayed or not.

    est 2ata 4un program.

    8$pected 4esult %olor te$t should be seen.

    est 4esult %olor te$t seen.

    %onclusion 8$pected result matches actual result.

    4esults:

    S.no. est b&ective 4esults

    ;. o check )hether program runs or not. successul

    =. o check i the program menu displays allmenu options or not.

    successul

    ?. o check all options are right or not. successul

    @. o check account )as created or not. successul

    D. o check i the program add amount aterdepositing.

    successul

  • 8/18/2019 ATM in C

    43/46

    E. o check i the program subtract amountater )ithdra)ing.

    successul

    F. o check i Gvie) detail- option sho)s theino or not.

    successul

    H. o check i currency converter )orks properly or not.

    successul

    . o check i the e$it option )orks or not. successul

    ;>. o check )hether menu options returnback or not.

    successul

    ;;.o check )hether menu is opened ater

    entering correct account number.

    successul

    ;=. o check )hether msg o 3account no. isnot valid0 prompt or not )hen incorrect

    account no. is entered.

    successul

    ;?. o check i the color te$t are displayed ornot.

    successul

    Jard)are and Sot)are Specifcation:

    %onfguration or hard)are and sot)are:

    It does not need any additional hard)are or sot)are to operate

    the program, but the ollo)ing re'uirements should be strongly

    maintained:

  • 8/18/2019 ATM in C

    44/46

    4e'uirements or hard)are:

    •  5entium II and hard)are.

    •  D;=!B o 4A! or higher.

    •  H>>!J processor or above.

    •  %2 4!.

    •  => !B o hard disk space.

    4e'uirements or sot)are:

    •  perating System /I72/S H or higher.

    •  5rogram 94B % needs to be installed.

    •  he content o BKI fles in the older % needs to be copied

    in the BI7 older or unctioning o graphical attributes.

    %7%9SI7:

    5rogram /eakness:

     As )e kno) that, no any program can be ;>>L reliable and

    e6cient. So there are also some dra)backs rom my system

    )hich are as ollo)s:

  • 8/18/2019 ATM in C

    45/46

      It cannot perorm all the re'uired unctions as bank

    re'uired, it-s simply a record o account o customer.   System is not sharply a graphical user interace. here

    is &ust use o some te$t color.

       Its not a multiuser and multitasking program. It can-t perorm various task at a single time.

    5rogram Strength:

     here are many advantages o using this program as it

    contains various eatures like:

      It is actually a user riendly sot)are, as it is &ust easy

    to use by &ust ollo)ing the instruction )hich are

    appeared on the screen.  his program needs user account number to access

    user inormation, so that only authoried users are only allo)ed to accessed through the internal main system.

      nce a record has been saved, duplicate record can-t

    be made. All the record have di"erent account number

    so that there )ill not be any misplace o the records

    entered.

  • 8/18/2019 ATM in C

    46/46

    BIB'IO(RA)*+ 

    94B %MM4B84 ++48

    8 9S %NASJ/A7 OA78OA4