Find Jobs
Hire Freelancers

Banking Environment in Erlang

$30-250 CAD

Đã hủy
Đã đăng vào gần 5 năm trước

$30-250 CAD

Thanh toán khi bàn giao
Your objective is to model a simple banking environment. Specifically, you will be given a small number of customers, each of whom will contact a set of banks to request a number of loans. Eventually, they will either receive all of the money they require or they will end up without completely meeting their original objective. The application will display information about the various banking transactions before it finishes. So now for the details. To begin, you will need a handful of customers and banks. These will be supplied in a pair of very simple text files – [login to view URL] and banks.txt. You will see that each label is associated with a number. For customers, this is the total funds that they are hoping to obtain. For banks, the number represents their total financial resources that can be used for loans. So your job now is to take this information and create an application that models the banking environment. Because customers and banks are distinct entities in this world, each will be modeled as a separate task/process. When the application begins, it will therefore generate a new process for each customer and each bank. Because you do not know how many customers or banks there will be, or even their names, you cannot “hard code” this phase of the application. The customer and bank tasks will then start up and wait for contact (you may want to make each new task sleep for a 100 milliseconds or so, just to make sure that all tasks have been created and are ready to be used). So the banking mechanism works as follows: 1. Each customer wants to borrow the amount listed int he input file. At any one time,however,they can only request a maximum of 50 dollars. When they make a request, they will therefore choose a random dollar amount between 1 and 50 for their current loan. 2. When they make a request, they will also randomly choose one of the banks as the target. 3. Before each request, a customer will wait/sleep a random period between 10 and 100 milliseconds. This is just to ensure that one customer doesn’t take all the money from the banks at once. 4. So the customer will make the request and wait for a response from the bank. It will not make another request until it gets a reply about the current request. 5. The bank can accept or reject the request. It will reject the request if the loan would reduce its current financial resources below [login to view URL], it grants the loan and notifies the customer. 6. If the loan is granted, the customer will deduct this amount from its total loan requirement and then randomly choose a bank (possibly the same one) and make another request(again, between 1 and 50 dollars). 7. If the loan is rejected,however, the customer will remove that bank from its list of potential lenders, and then submit a new request to the remaining banks. 8. This process continues until customers have either received all of their money or they have no available banks left to contact. And that’s it. Rest of the details have been uploaded as an attachment as well as the input files and expected output
Mã dự án: 19975261

Về dự án

2 đề xuất
Dự án từ xa
Hoạt động 5 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
2 freelancer chào giá trung bình $115 CAD cho công việc này
Avatar người dùng
I Read through the job details and I am absolutely sure that I can do the project very well. I would love to work on your project and I'm confident that I can give the result and exceed your expectations. I am experienced programmer here. Erlang will require you to gain some familiarity with the concept of message passing. Also Erlang does this more effectively than any other modernprogramming language. And I'm confident that I can complete your project on time and within your budget. I can achieve the results that you are asking for. Thank you Hope that helps you as well.
$200 CAD trong 1 ngày
5,0 (2 nhận xét)
1,6
1,6
Avatar người dùng
I am expert in developing erlang project and I understood your banking system having three files using multithreading and concurrent operations
$30 CAD trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của CANADA
Montreal, Canada
5,0
1
Phương thức thanh toán đã xác thực
Thành viên từ thg 6 13, 2019

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.