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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代做COMP2221、代寫Java程序設(shè)計(jì)
代做COMP2221、代寫Java程序設(shè)計(jì)

時間:2025-03-23  來源:合肥網(wǎng)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

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

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁版入口 破天一劍 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    色狠狠久久aa北条麻妃| 欧美精品一区二区三区免费播放| 亚洲一区二区高清视频| 欧美国产综合在线| 久久黄色免费看| 色综合久久中文字幕综合网小说| 欧美性大战久久久久| 国产不卡av在线免费观看| 亚洲淫片在线视频| 国产素人在线观看| 久久精品色欧美aⅴ一区二区| 日韩中文字幕在线免费| 91久久夜色精品国产网站| 国产精品久久激情| 免费在线黄网站| 国产精品视频成人| 欧美精品123| 韩国国内大量揄拍精品视频| 国产成人无码一二三区视频| 欧美午夜精品久久久久免费视| 国产伦精品一区二区三区在线| 国产精品久久久久久超碰| 激情五月亚洲色图| 国产精品毛片a∨一区二区三区|国 | 亚洲综合欧美日韩| 99久re热视频这里只有精品6| 久久久久国产视频| 成人精品视频久久久久| 一区二区三区国| 91精品视频播放| 色一情一乱一乱一区91| 久久96国产精品久久99软件| 欧美最猛黑人xxxx黑人猛叫黄| 色婷婷综合成人| 青草青草久热精品视频在线观看| 国产精品入口免费| 国产视色精品亚洲一区二区| 久久久久久com| 8090成年在线看片午夜| 日本精品国语自产拍在线观看| 日日噜噜噜夜夜爽亚洲精品| 黄色a级片免费| 九色精品免费永久在线| 成人免费在线网| 午夜精品久久久99热福利| 久久久久久人妻一区二区三区| 欧美激情www| 久久国产精品久久久久久| 国产免费一区二区| 天天爱天天做天天操| 久久99精品久久久水蜜桃| 欧美日韩亚洲在线 | 国产精品久久久久91| 国产欧美精品久久久| 亚洲欧美日韩精品在线| 日韩视频永久免费观看| 国产日韩在线一区| 色哺乳xxxxhd奶水米仓惠香| 国产成人精品在线观看| 国产伦理一区二区三区| 日本a级片电影一区二区| 国产精品视频中文字幕91| 国产精品亚洲视频在线观看| 日韩视频专区| 欧美激情网站在线观看| 视频在线一区二区| 国产无限制自拍| 日韩视频在线观看国产| 中文字幕乱码人妻综合二区三区 | 国产欧美一区二区在线播放| 性欧美亚洲xxxx乳在线观看| 国产精品免费久久久久影院| 国产美女精彩久久| 日韩欧美一区二区视频在线播放| 国产精品高清在线| 国产高清自拍一区| 国产日韩成人内射视频| 日本久久久网站| 中文字幕免费在线不卡| 久久精品中文字幕| 99在线精品免费视频| 狠狠噜天天噜日日噜| 日本最新一区二区三区视频观看| 久久福利视频网| 色777狠狠综合秋免鲁丝| 99久re热视频这里只有精品6| 毛葺葺老太做受视频| 电影午夜精品一区二区三区| 欧美xxxx14xxxxx性爽| 久久精品成人动漫| 91精品久久久久久久久青青| 国产欧美日韩综合精品二区| 欧美日韩另类丝袜其他| 日日噜噜噜夜夜爽爽| 亚洲永久在线观看| 久久99久久99精品免观看粉嫩| 久久精品99无色码中文字幕| 国产成人中文字幕| 97伦理在线四区| 国产裸体写真av一区二区| 国内伊人久久久久久网站视频| 日本亚洲欧洲色α| 在线免费一区| 精品不卡一区二区三区| 国产精品久久久久久av| 国产成人精品视频免费看| 久久久免费高清电视剧观看| 俄罗斯精品一区二区三区| 国产无套内射久久久国产| 黄色高清视频网站| 欧美xxxx黑人又粗又长精品| 青青影院一区二区三区四区| 欧美一区二区大胆人体摄影专业网站 | 亚洲av首页在线| 欧美激情18p| 精品久久久久久久免费人妻 | 日韩精彩视频| 日本一区二区三区视频在线播放| 午夜精品久久久久久久久久久久| 亚洲综合最新在线| 一区二区三区一级片| 中文字幕在线中文字幕日亚韩一区| 久久这里只有精品99| 欧美伦理91i| 欧美久久久精品| 欧美日韩成人网| 国产精品成人免费电影| 久久亚洲国产精品成人av秋霞| 久久资源免费视频| 九九热精品视频在线播放| 久99九色视频在线观看| 中日韩在线视频| 亚洲一区二区三区精品在线观看| 一本一本a久久| 熟妇人妻va精品中文字幕| 日本一区二区三区免费观看| 日韩激情视频一区二区| 欧洲美女7788成人免费视频| 欧美日韩一区二区视频在线| 免费h精品视频在线播放| 国产一区二区视频在线免费观看| 黄色网址在线免费看| 国产日韩一区二区在线| 国产精品自拍偷拍视频| 99视频国产精品免费观看| 国产福利视频一区| 深夜精品寂寞黄网站在线观看| 日韩中文字幕在线观看| 国产精品欧美日韩| 九九热精品在线| 亚洲v日韩v欧美v综合| 日韩欧美99| 免费黄色福利视频| av在线不卡一区| 久草在在线视频| 国产精品大陆在线观看| 欧美激情一区二区久久久 | 国产精品区一区| 久久99久久99精品中文字幕| 亚洲欧美日韩精品综合在线观看| 日韩精品在线视频免费观看| 蜜桃av噜噜一区二区三| 97精品免费视频| 久久人人爽人人爽人人片亚洲| 精品免费国产| 日本一区二区三区在线播放| 黄色高清视频网站| 成人免费无码av| 久久久久久久999| 国产99久久精品一区二区 夜夜躁日日躁 | 欧美日韩国产精品一区二区| 国产日韩欧美电影在线观看| 99热在线国产| 国产精品视频精品| 亚洲一区二区三区色| 欧美日韩午夜爽爽| 97久久久免费福利网址| 精品久久国产精品| 亚洲综合中文字幕在线| 男人舔女人下面高潮视频| 97人人模人人爽人人喊中文字| 久久久精品久久久| 亚洲一区二区自拍| 青青草成人免费在线视频| 成人免费毛片播放| 久久九九亚洲综合| 少妇性饥渴无码a区免费| 国产亚洲精品网站| 久久精品国产一区二区三区不卡 | 欧美凹凸一区二区三区视频| 777午夜精品福利在线观看| 国产精品美女午夜av| 欧美一级视频一区二区| 国产熟女高潮视频| 久久最新资源网| 日本一区二区在线视频| 国产另类自拍| 久久精品福利视频| 亚洲伊人成综合成人网| 韩日欧美一区二区|