代做COMP2221、代写Java程序设计

- 首页 >> C/C++编程
School of Computer Science: assessment brief
Module title Networks
Module code COMP2221
Assignment title Coursework
Assignment type
and description
Programming assignment in Java
Rationale
Design and develop client and multi-threaded server ap plications in Java to solve a specified problem
Guidance Detailed guidance provided later in this document
Weighting 30%
Submission dead line
2pm Monday 24th March
Submission
method Gradescope
Feedback provision
Marks and comments for the submitted code returned
via Gradescope
Learning outcomes
assessed
Design, implement and test network protocols and ap plications.
Module lead David Head
1
1. Assignment guidance
For this coursework, you will implement client and multi-threaded server applications
for a simple voting system in which the server is initialised with the options to vote
for, and clients can view the current number of votes for each option. Clients can also
vote for one of the options, which is then updated on the server.
This coursework specification is for school Unix machines only, including the remote
access feng-linux.leeds.ac.uk. We cannot guarantee it will work on any other
environment.
2. Assessment tasks
To get started, unarchive the file cwk.zip (you can do this from the command line
by typing unzip cwk.zip). You should then have a directory cwk with the following
structure:
cwk --- client --- Client.java
|
-- server --- Server.java
Empty .java files for the client and server have been provided. Do not change the
names of these files, as we will assume these file and class names when assessing.
You are free to add additional .java files to the client and server directories.
The requirements for the server application are as follows:
• Accept at least two options that can be voted for, each consisting of a single word,
as command line arguments when launched, e.g.
java Server rabbit squirrel duck
• The server should immediately quit with an error message for less than two options.
• Otherwise, it should run continuously.
• Use an Executor to manage a fixed thread-pool with 30 connections.
• If the client makes a vote for
站长地图