Networking Project
- or -
Post a project like this£30(approx. $38)
- Posted:
- Proposals: 4
- Remote
- #3442255
- Expired
Description
Experience Level: Entry
The primary goal of this assignment is to develop a demonstrator of a concurrent client-server system that shows how transactions issued by bank application clients correctly update the data held by the banking application server. Remember this is a demonstrator to show that you understand issues in network computing (not banking!)
The WLFB Bank Application
The WLFB Bank Application (WBA) that you will design and implement is very simple as it is only used by three people at the moment (it’s a small bank!) The amount of money that each user has is represented in the server by a variable (i.e., there are three variables in the server!) The users are very busy and (1) frequently add and subtract money from their account and (2) transfer money to other user’s accounts (i.e., all these operations run at the server). Each user has their own client and they use their client to instruct the server to run the operations. You can call the clients A, B and C. The operations are as follows:
Add_money(account, value) – this adds value (virtual) money to the specified account (i.e. the user’s account – you can assume that they only add money to their own account).
Subtract_money(account, value) – this subtracts value (virtual) money from the specified account (i.e. the user’s account – you can assume that they only subtract money from their own account).
Transfer_money(account1, account2, value) – this transfers value (virtual) money from account1 to account2.
The users start with 1000 units in their accounts. Accounts can go below zero.
You are required to create a multi-threaded client-server system that uses locking and has:
* • One client used by each user to run the operations at the server as above (three in total)
* • One server that holds the account variables and executes the operations as instructed by the clients
Demonstrate that the three clients can add/subtract money to and from their own accounts. Also demonstrate two transfer money actions between two different sets of (e.g., A/B and A/C). As you will need to show how your application works, you might also consider implementing simple log files. You are not required to implement any kind of user interface. Java socket must be used to create this
The WLFB Bank Application
The WLFB Bank Application (WBA) that you will design and implement is very simple as it is only used by three people at the moment (it’s a small bank!) The amount of money that each user has is represented in the server by a variable (i.e., there are three variables in the server!) The users are very busy and (1) frequently add and subtract money from their account and (2) transfer money to other user’s accounts (i.e., all these operations run at the server). Each user has their own client and they use their client to instruct the server to run the operations. You can call the clients A, B and C. The operations are as follows:
Add_money(account, value) – this adds value (virtual) money to the specified account (i.e. the user’s account – you can assume that they only add money to their own account).
Subtract_money(account, value) – this subtracts value (virtual) money from the specified account (i.e. the user’s account – you can assume that they only subtract money from their own account).
Transfer_money(account1, account2, value) – this transfers value (virtual) money from account1 to account2.
The users start with 1000 units in their accounts. Accounts can go below zero.
You are required to create a multi-threaded client-server system that uses locking and has:
* • One client used by each user to run the operations at the server as above (three in total)
* • One server that holds the account variables and executes the operations as instructed by the clients
Demonstrate that the three clients can add/subtract money to and from their own accounts. Also demonstrate two transfer money actions between two different sets of (e.g., A/B and A/C). As you will need to show how your application works, you might also consider implementing simple log files. You are not required to implement any kind of user interface. Java socket must be used to create this
Haider A.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
0%
Last project
30 Nov 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies