Giter Site home page Giter Site logo

chetanpaliwal22 / bank-customer-multithreading-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 69 KB

An erlang and Java implementation of loan application to understand the working of concurrency in the java and functional programming language.

Java 56.22% Erlang 43.78%

bank-customer-multithreading-project's Introduction

Description:

This project was part of course COMP6411, Comparative study of programming languages, in this project we have created a Concurrent banking environment in Erlang.

Requirement:

A customer can contact multiple bank for the loan and the bank will approve/reject the loan application based on some pre-defined constraints.

The program execution should stop once all the customers get the money they require or banks are out of the fund, in second scenario customer will not be able to meet their loan objective.

In the end the application will display information about all the banking transactions, the amount remaining with Banks and the amount given to each customer.

  • For Erlang Version:

    To run the code:

    In CMD:

    1. Compile the three file using command: erlc filename.erl command.
    2. Run the application using command: erl -noshell -s money -s init stop

    In Eclipse:

    1. Run the project.
    2. then start the function money:start().

    Note:

    1. For error related to input read: Put the complete source path.
    2. For calculation purpose I am printing each amount in the end. For example even if customer 1 reach objective in first go his amount will be printed in the end with all the cusomter.

    Note: If the request amount is less then the random amount then the customer will request the remaining loan amount.

  • For Java version:

    1. Change the source path in the main method of money.java class.
    2. Run the money.java class.

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.