Ravleen Final(2)

download Ravleen Final(2)

of 15

Transcript of Ravleen Final(2)

  • 7/30/2019 Ravleen Final(2)

    1/15

    Term paper onTopic :BANKINGObject Oriented ProgrammingCSE202

    Submitted to: Submitted by:Mr. Munish Kumar RavleenKaurDept of CSE RK3002A01

    11008672

  • 7/30/2019 Ravleen Final(2)

    2/15

    SOURCE CODE

    /*program to enter the details to create an account,

    edit the account transactions and

    to enter the details of loan offered*/

    #include

    #include

    #include

    class bank

    {

    protected:

    char name[15];

    charfather_name[15];

    longint balance;

    int total;

    int id;

    int age;

    public:

    void display()

    {

    cout

  • 7/30/2019 Ravleen Final(2)

    3/15

    cout

  • 7/30/2019 Ravleen Final(2)

    4/15

    display();

    cout

  • 7/30/2019 Ravleen Final(2)

    5/15

    }};

    classedit_account:private bank

    {

    intchh;

    char c;

    public:

    void display1()

    {display();}

    void display5();

    void display6()

    {

    puts(name);

    cout

  • 7/30/2019 Ravleen Final(2)

    6/15

    {

    float principal;

    float rate;

    float time;

    public:

    voidsel_type();

    voidloan_payment();

    };

    void loan::loan_payment()

    {

    intmp;

    longintcno;

    floatamt;

    cout

  • 7/30/2019 Ravleen Final(2)

    7/15

    cout

  • 7/30/2019 Ravleen Final(2)

    8/15

    cout

  • 7/30/2019 Ravleen Final(2)

    9/15

    couttime;

    calc_loan(principal,rate,time);

    break;

    }

    case 3:

    {

    cout

  • 7/30/2019 Ravleen Final(2)

    10/15

    break;

    }

    }

    }

    else

    cout

  • 7/30/2019 Ravleen Final(2)

    11/15

    {

    nwaccount obj2;

    obj2.display3();

    break;

    }

    case 3:

    {

    deposit obj3;

    obj3.display4();

    break;

    }

    case 4:

    {

    loan obj4;

    obj4.sel_type();

    coutp;

    if(p=='p')

    obj4.loan_payment();

    break;

    }

    default:

    {

    cout

  • 7/30/2019 Ravleen Final(2)

    12/15

    getch();

    }

    SCREEN SHOTS

  • 7/30/2019 Ravleen Final(2)

    13/15

  • 7/30/2019 Ravleen Final(2)

    14/15

  • 7/30/2019 Ravleen Final(2)

    15/15