Đã Hủy

banking environment project in java

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. That’s it.

JAVA VERSION: You will begin by reading the same data files. In this case, you will use Java’s IO classes to extract the input data

Once you have the data, you will replicate the messaging program. In this case, you will use Java’s basic thread mechanism to create individual threads to represent each customer and bank. This will be a multi-threaded program.

The customer and bank threads will exchange messages, using the same logic/order as described below.

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.

Of course, we need a way to demonstrate that all of this has worked properly. To begin, it is important to understand that this is a multi-process program. The “master” process will be the initial process that, in turn, spawns processes for each of the customers

(the master process is like the class containing “main” in Java). So, in our little example above, there will be 8 processes in total: the master, 4 customers and 3 banks.

Rest of the information about this and both input files as well as expected output file is attached

Kĩ năng: Java

Xem nhiều hơn: bank management system project in java github, banking application project in java, java bank account project, banking management system project in java with source code, java program bank account transaction, bank management system project in java with source code pdf, bank management system project in java netbeans, banking system project in java source code, online banking transaction project java struts, web banking mini project java, banking insurance project java swing, banking project java embedded sql, banking project java program, free banking system project advance java, internet banking project java free tomcat, internet banking project java project report, mobile banking project java, mobile banking system project java, mobile banking type project java, online banking project java

Về Bên Thuê:
( 0 nhận xét ) Montreal, Canada

ID dự án: #19974914

6 freelancer đang chào giá trung bình $184 cho công việc này

progcgstar

HI. As a Java developer with strong math background, I believe I can finish your project PERFECTLY as your requirements. I will do my BEST for you. You will be able to find that I'm an experience and skillful enough an Thêm

$250 CAD trong 7 ngày
(53 Nhận xét)
6.2
DevPrateek

Hello sir ,I am a 5 year experienced java developer,expert in java ,spring boot ,spring MVC ,hibernate ,mysql ,javafx ,swwing ,applet ,desktop applications . I can do it .Please hire me

$160 CAD trong 7 ngày
(5 Nhận xét)
2.3
abhimadankr

I read job description and I can do your project.I can even work on urgent basis and complete your project soon..contact me for more information

$277 CAD trong 5 ngày
(0 Nhận xét)
0.0
garrystebbins77

Warm Greetings!! Good result and high trust! I'm an excellent developer in Web. I've 4 years of experience in Web Development/Web design. I am very much interested in your job please invite me for further discussion an Thêm

$200 CAD trong 5 ngày
(0 Nhận xét)
0.0
evonsystems7

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned "I can do th Thêm

$165 CAD trong 7 ngày
(1 Nhận xét)
0.0
IvoSouza

Olá, estou iniciando no mundo do freelancer agora, mas ja tenho experiencia com java e mult-Threads. Se puder me dar esse voto de confiança, darei o melhor de mim nesse mesmo projeto, afim de conseguir mais experiencia Thêm

$50 CAD trong 7 ngày
(0 Nhận xét)
0.0