Git Product home page Git Product logo

dhruvv23 / salik-bank-limited Goto Github PK

View Code? Open in Web Editor NEW

This project forked from salikali1234/salik-bank-limited

0.0 0.0 0.0 32.36 MB

Bankist application in C++ by using dynamic arrays and classes concepts :Its main features are login system, user authentication ,create a new account , requesting loan , transfer money, sort your movements , currency converter , delete your account and log out system .

License: MIT License

C++ 38.09% C 61.91%

salik-bank-limited's Introduction

Welcome to BANKIST APPLICATION ๐Ÿ‘‹

GitHub top language GitHub repo size GitHub GitHub followers GitHub User's stars GitHub commit activity GitHub last commit GitHub language count

Bankist application in C++ by using DYNAMIC MEMPRY ALLOCATION and OBJECT_ORIENTED_PROGRAMMING concepts. Its main features are login system, user authentication ,create a new account , requesting loan , transfer money, sort your movements , currency converter , delete your account and log out system .

โœจ Demo

Bankist project main feature is abstraction and data-encapsulation.Main contain only default accounts data, memory allocation and deallocation and one executed external function.

demo

Example of Abstraction and encapsulation see main.cpp:

#include"_SBL_Features.h"

int main()
{

/* ==============================================================================================
********************************************MAIN_FUNCTION***************************************
================================================================================================*/

    //_ALLOCATION
    int noOfAccounts = 3;
    int *defaultPins = new int[noOfAccounts]{111, 222, 333};
    double *movementsAcc0 = new double[5]{2000, 1000, -500, 20000, -6000};
    double *movementsAcc1 = new double[5]{5000, -2000, 10000, 5000, -8000};
    double *movementsAcc2 = new double[5]{8000, 10000, 4000, -12000, -1000};

    //RUNTIME_INFORMATION
    account *accounts = new account[noOfAccounts];
    account currentUser;

    //====================================================
    //____________________DEFAULT_ACCOUNTS________________
    //====================================================

    //Account-1
    accounts[0].setName("Muhib Arshad");
    accounts[0].calculateUserName();
    accounts[0].setPin(defaultPins[0]);
    accounts[0].setSize(5);
    accounts[0].setMovementsAddress(movementsAcc0);
    accounts[0].calculateTotalBalance();
    accounts[0].calculateTotalIncome();
    accounts[0].calculateTotalOutcome();
    accounts[0].calculateTotalInterest();

    //Account-2
    accounts[1].setName("Ali Abdullah");
    accounts[1].calculateUserName();
    accounts[1].setPin(defaultPins[1]);
    accounts[1].setSize(5);
    accounts[1].setMovementsAddress(movementsAcc1);
    accounts[1].calculateTotalBalance();
    accounts[1].calculateTotalIncome();
    accounts[1].calculateTotalOutcome();
    accounts[1].calculateTotalInterest();

    //Account-3
    accounts[2].setName("Bilal Sharafat");
    accounts[2].calculateUserName();
    accounts[2].setPin(defaultPins[2]);
    accounts[2].setSize(5);
    accounts[2].setMovementsAddress(movementsAcc2);
    accounts[2].calculateTotalBalance();
    accounts[2].calculateTotalIncome();
    accounts[2].calculateTotalOutcome();
    accounts[2].calculateTotalInterest();

    //BRAIN_AND_HEART_OF_SBL
    SIGN_IN_OR_SIGN_UP(accounts, noOfAccounts, currentUser);

    //_DEALLOCATION
    delete[] movementsAcc0;
    movementsAcc0 = nullptr;
    delete[] movementsAcc1;
    movementsAcc0 = nullptr;
    delete[] movementsAcc2;
    movementsAcc0 = nullptr;
    delete[] accounts;
    accounts = nullptr;

    return 0;
}

Usage

Default Accounts for login:

username password
ma 111
aa 222
bs 333

๐Ÿš€ Features:

  • How to use the Dynamic Memory Allocation .
  • Data hiding and Encapsultion of Classes .
  • Real World Banking system .
  • Login, create new account system.
  • Requesting Loan ,Transfering loan system.
  • Sort your movements and delete your account system.
  • All input validations are done .
  • No memory leakage in run-time all dynamic memory is deallocated.

๐Ÿค Contributing

Feel Free to contribute. If you want to add some features and resolve any issues then just fork the repository. To want to change the code only in the one main.cpp file then create pull-request to the master branch. I will review it and then i merge it to the branch. And same for the main branch also.

Author

๐Ÿ‘จโ€๐Ÿ’ป Muhib Arshad

Let's connect!

Show your support

Please โญ๏ธ this repository if this project helped you!

You can also follow my GitHub Profile to stay updated: @muhib7353

๐Ÿ“ License

Copyright ยฉ 2022 Muhib Arshad.

This project is MIT licensed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.