国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做COMP2221、代寫Java程序設計
代做COMP2221、代寫Java程序設計

時間:2025-03-23  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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 <option>, the vote count for <option> should be
increased by 1 (note all vote counts should initially be zero).
• However, if <option> does not exist, an error message should be returned.
• Following a request by a client, return the current state of the poll with one line
per option, where each line contains at least the option and the current count. See
below for an example of valid output.
• Create the file log.txt on the server directory and log every valid client request,
with one line per request, in the following format:
date|time|client IP address|request
where request is one of list or vote, i.e. you do not need to log the option for
vote operations. Do not add other rows (e.g. headers, blank lines) to the log file.
Note that you must create the log file, not overwrite or append an existing file. Any
log.txt file in your submission will be deleted at the start of the assessment.
The requirements for the client application are as follows:
• Accept one of the following commands as command line arguments, and perform
the stated task:
2
• list, which displays the current state of the poll from the server and displays
it to the user. Each option should be output on the same line as their current
vote count, with a different line for each option. See below for an example of
valid output.
• vote <option>, which requests that the server increases the vote count for
<option> by 1, and display the message returned by the server.
• Exits after completing each command.
Your server application should listen to the port number 7777. Both the client and the
server should run on the same host, i.e. with hostname localhost.
All communication between the client and server must use sockets – they cannot access
each other’s disk space directly. Your solution must use TCP, but otherwise you are
free to devise any communication format you wish, provided the requirements above
are met.
Neither the client nor the server should expect interaction from the user once they are
executed. In particular, instructions to the Client application must be via command
line arguments. In the case of an invalid input, your client application should quit with
a meaningful error message.
3. General guidance and study support
If you have any queries about this coursework, visit the Teams page for this module. If
your query is not resolved by previous answers, post a new message. Support will also
be available during the timetabled lab sessions.
You will need the material up to and including Lecture 11 to complete this coursework.
You may like to first develop Client.java and Server.java to provide minimal func tionality, following the examples covered in Lectures 7 and 8. You could then add
another class that handles the communication with a single client. This will make
it easier to implement the multi-threaded server using the Executor. Multi-threaded
servers were covered in Lectures 10 and 11. You will need to use input and output
streams; these were covered in Lecture 6.
Example session
First cd to cwk/server, compile, and launch the server with two options to vote for:
> java Server rabbit squirrel
Now in another tab or shell, cd to cwk/client and compile. If you execute the following
commands, the output should be something like that shown below.
>java Client list
’rabbit’ has 0 vote(s).
’squirrel’ has 0 vote(s).
> java Client vote rabbit
Incremented the number of votes for ’rabbit’.
>java Client list
’rabbit’ has 1 vote(s).
’squirrel’ has 0 vote(s).
3
> java Client vote duck
Cannot find option ’duck’.
Note your application does not need to follow exactly the same output as in this exam ple, as long as the requirements above are followed.
4. Assessment criteria and marking process
Your code will be checked using an autograder on Gradescope to test for functionality.
Staff will then inspect your code and allocate the marks as per the provided mark
scheme below. This includes the meaningful nature (or not) of error messages output
by your submission.
5. Submission requirements
Remove all extraneous files (e.g. *.class, any IDE-related files etc.). You should then
archive your submission as follows:
(a) cd to the cwk directory
(b) Type cd ..
(c) Type zip -r cwk.zip cwk
This creates the file cwk.zip with all of your files. Make sure you included the -r
option to zip, which archives all subdirectories recursively.
To check your submission follows the correct format, you should first submit using the
link Coursework: CHECK on Gradescope. Only once it passes all of the tests should
you then submit to the actual submission portal, Coursework: FINAL.
The autograder is set up to use the standard Ubuntu image (base image version 22.04)
with OpenJDK 21 installed as follows,
apt-get -y install openjdk-21-jdk
This version of Java most closely matches the RedHat machines in the Bragg teaching
cluster and on feng-linux.leeds.ac.uk.
The following sequence of steps will be performed when we assess your submission.
(a) Unzip the .zip file.
(b) cd to cwk/client directory and compile all Java files: javac *.java
(c) cd to cwk/server directory and do the same.
(d) If there is a log.txt file on the server directory, it will be deleted.
(e) To launch the server, cd to the cwk/server directory and type e.g. java Server
mouse rabbit
(f) To launch a client, cd to the cwk/client directory and type e.g. java Client
list
If your submission does not work when this sequence is followed, you will lose marks.
6. Academic misconduct and plagiarism
Academic integrity means engaging in good academic practice. This involves essential
academic skills, such as keeping track of where you find ideas and information and
referencing these accurately in your work.
4
By submitting this assignment you are confirming that the work is a true expression
of your own work and ideas and that you have given credit to others where their work
has contributed to yours.
There is a three-tier traffic light categorisation for using Gen AI in assessments. This
assessment is amber category: AI tools can be used in an assistive role. Use comments
in your code to declare any use of generative AI, making clear what tool was used and
to what extent.
Code similarity tools will be used to check for collusion, and online source code sites
will be checked.
7. Assessment/marking criteria grid
This coursework will be marked out of 30.
11 marks : Basic operation of the Server application, including use of thread
pool and log file output.
11 marks : Implementation of the list and vote commands.
4 marks : Meaningful error messages.
4 marks : Sensible code structure with good commenting.
Total: 30


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機打開當前頁
  • 上一篇:鯨魚借條全國客服電話-鯨魚借條24小時人工客服熱線
  • 下一篇:PALS0039代做、代寫Java/C++語言程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产伦精品一区二区三区照片91| 国产精品国产精品国产专区不卡| 国产精品福利在线观看网址| 日韩人妻精品无码一区二区三区| 国产精华一区| 日韩成人av电影在线| 色偷偷av一区二区三区| 欧美大陆一区二区| 久久五月情影视| 国产男女在线观看| 亚洲精品国产精品国自产观看| 国产高清一区二区三区| 欧美性视频在线| 久久伊人精品天天| 国产精品香蕉视屏| 日本伊人精品一区二区三区介绍| 国产成人久久久| 国产日产久久高清欧美一区| 在线精品日韩| 国产不卡一区二区在线观看| 国内精品伊人久久| 中文字幕制服丝袜在线| 久久免费观看视频| 黄色一级片av| 亚洲制服欧美久久| 久久久久久久久久国产| 国产中文字幕在线免费观看| 午夜午夜精品一区二区三区文| 久久久久女教师免费一区| 免费国产成人av| 亚洲成人午夜在线| 国产精品美女黄网| 91九色对白| 欧美日韩一区二区三| 欧美极品欧美精品欧美视频| 久久久久资源| 国产精品一区二区在线| 午夜精品www| 91av网站在线播放| 日本一区高清不卡| 国产精品视频播放| 国产日韩欧美电影在线观看| 一区二区三区四区免费视频| 99在线看视频| 亚洲一区二区三区乱码aⅴ蜜桃女 亚洲一区二区三区毛片 | 99久热re在线精品视频| 美女av一区二区三区| 99国产精品久久久久老师| 日批视频在线免费看| 久久精品91久久香蕉加勒比| 久久av一区二区三区亚洲| 国产一区二区三区乱码| 日韩精品无码一区二区三区免费 | 日本国产中文字幕| 在线一区日本视频| 国产精品美女午夜av| 久久全国免费视频| 分分操这里只有精品| 青青青国产精品一区二区| 一区二区三区观看| 国产精品久久久久福利| 久久99久久99精品| 白白操在线视频| 国产欧美在线看| 欧美精品一区二区三区在线看午夜 | 加勒比海盗1在线观看免费国语版| 亚洲.欧美.日本.国产综合在线 | 国产日韩二区| 欧美日韩天天操| 日本一区免费在线观看| 亚洲精品tv久久久久久久久| 精品国产成人av在线免| 国产精品美女在线观看| 日韩在线观看免费| 久久久免费视频网站| 高清一区二区三区日本久| 免费观看美女裸体网站| 欧美日本国产精品| 日本a级片在线观看| 亚洲综合日韩中文字幕v在线| 精品国产一区二区三区麻豆免费观看完整版 | 日韩精品国内| 永久免费看av| 国产精品成人在线| 久久久久久久久久久久av| 国产毛片视频网站| 精品欧美一区二区在线观看视频| 午夜精品久久久久久99热| 久久精品国产一区| 99在线观看视频网站| 男人天堂成人网| 日本精品一区二区三区四区| 亚洲伊人久久综合| 操人视频在线观看欧美| 视频直播国产精品| …久久精品99久久香蕉国产| 国产视频一区二区三区四区 | 久久久免费av| 91精品国产综合久久久久久久久 | 激情视频在线观看一区二区三区| 午夜精品久久久久久久久久久久 | 国内精品久久久久久中文字幕 | 日本不卡一区二区三区视频| 日韩在线观看a| 日本久久中文字幕| 日本999视频| 国内精品视频在线播放| 欧美日本韩国在线| 日本精品一区在线观看| 亚洲欧美成人一区| 在线观看一区二区三区三州| 欧美成人精品在线播放| 国产精品视频在线免费观看| 国产成人女人毛片视频在线| 国产传媒久久久| 久久精品午夜一区二区福利| 国产精品99久久99久久久二8| 中文字幕一区二区三区四区五区六区 | 蜜桃精品久久久久久久免费影院| 狠狠久久综合婷婷不卡| 国产美女无遮挡网站| 91精品国产亚洲| 久久久久久久97| 国产精品久久久久久久久久久久| 欧美日本精品在线| 午夜精品区一区二区三| 人人妻人人澡人人爽欧美一区双| 欧洲精品在线播放| 国产亚洲欧美在线视频| 99在线看视频| 久久久精品视频成人| 国产999在线| 日本一本a高清免费不卡| 免费看污久久久| 91美女片黄在线观| 久久色精品视频| 中文字幕综合在线观看| 日韩女优中文字幕| 国产啪精品视频网站| 国产成人精品日本亚洲11| 国产精品精品软件视频| 午夜视频久久久| 极品日韩久久| 国产精品99久久久久久久久久久久 | 久久精品日产第一区二区三区 | 日韩一区不卡| 欧美精品成人网| 国产男女无遮挡| 日日骚av一区| 一区二区三区我不卡| 欧美中文字幕在线视频| 国产无套粉嫩白浆内谢的出处| 国产精品∨欧美精品v日韩精品 | 精品日本一区二区| 91成人综合网| 国产精品成熟老女人| 日本福利视频导航| 成人在线免费观看一区| 久久久极品av| 亚洲 欧美 日韩 国产综合 在线| 欧美视频观看一区| 99www免费人成精品| 国产精品免费网站| 日韩中文字幕二区| 国产精品一二三视频| 国产精品久久久久久久午夜| 日本高清一区| 91av福利视频| 在线一区亚洲| 精品少妇一区二区三区在线| 久久久久国产精品熟女影院| 欧美精品久久久久久久| 国产综合动作在线观看| 久久精品成人一区二区三区| 午夜一区二区三区| 国产麻豆乱码精品一区二区三区| 国产精品视频内| 日韩三级在线播放| 国产经典一区二区| 亚洲一区二区不卡视频| 国产伊人精品在线| 国产精品视频一区二区三区四区五区 | 欧美又大粗又爽又黄大片视频| 8050国产精品久久久久久| 欧美精品九九久久| 国产日韩在线一区二区三区| 国产精品久久久久久五月尺| 欧美有码在线观看| 国产v亚洲v天堂无码久久久| 亚洲va久久久噜噜噜久久天堂| 国产精品一区二区三区在线 | 久久综合久久色| 综合操久久久| 成人久久一区二区三区| 欧美精品激情在线| 国产美女主播一区| 国产aⅴ夜夜欢一区二区三区| 欧美变态另类刺激| 日韩一中文字幕| 青青草精品毛片|