Banking Environment

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.

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.

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.

Skills: Java

See more: banks and environmental issues, environmental factors affecting banking industry, bei bank, banking environment pdf, uk banking environment, staff com your account needs approval before you can proceed with the application, https scribie com freelance transcription rc 1 b 1 5 1 2 8 0 eb 5 0 e 8 0 0 1 d 3 8 fa 2 cd 6 bf 5 3 e 0 2 eb 1 2 0 c 8, design your own 2 story coastal home online, ppt outsourcing information systems drawing lessons from the banking case study european journal of information systems 10 15 24, write a letter to your friend tom lives in london inviting him to visit you in aswan tell him about the best time to come tell h, write an acceptance speech outlining your goals and target for d next academic session, your teacher asked you to write an article for the school magazine because young people spend too much time playing computer gam, simply southern bless your heart pigs classy southern style long sleeve t shirt small, update joomla 2.5 to 3.0 manually, how to get your product in target, your name 2, download python 2.7 for windows 10, .net framework 4.6.2 developer pack windows 10, 2 days before wedding, your start menu isn't working. we'll try to fix it the next time you sign in

About the Employer:
( 1 review ) Montreal, Canada

Project ID: #19975079

Awarded to:


I hold a degree in Computer Engineering. I minored in Programming with a focus in java,python,web design,c++, assembly. Whether independent or operating on a team my analytical approach to problem solving has been a pl More

$10 CAD in 1 day
(3 Reviews)

7 freelancers are bidding on average $41 for this job


Hey A Java expert developer is here I can help you with your Java project This is an initial bid Feel free to message me Regards

$20 CAD in 1 day
(200 Reviews)

Hi I have more than seven years of working experience as a full stack java 8 developer in top mncs with various desktop and web based enterprise work using java swing for desktop and angular4/5/6/7 for web app ui. I More

$55 CAD in 1 day
(8 Reviews)

Hello, I'm java developer working more than 3 years in that field. The task you described about banking system looks pretty clear and understandable. I have experience with every stage in that work including concurren More

$30 CAD in 1 day
(18 Reviews)

"Hi, Hope you are doing well! Thanks for sharing your project requirement with us. It will be our great pleasure to work on your project. I have checked your requirement, yes we can do it, because we already work on si More

$150 CAD in 7 days
(1 Review)

I am a student pursuing my degree of Bachelors and i would love to help in this project. Also my sole purpose is to develop my skills more in this field and have no intention for entering a bid but since this platform More

$10 CAD in 15 days
(0 Reviews)

This type of system design is what spices up certain interview processes. Please find the proposed design as below, * As you mentioned the main thread will spawn bank threads and shares the bank thread object referen More

$10 CAD in 1 day
(0 Reviews)