99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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

時(shí)間:2025-03-23  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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


請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
  • 短信驗(yàn)證碼 trae 豆包網(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號(hào)-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美日韩一区二区三区四区五区| 国产成人免费在线观看| 视频一区在线视频| 欧美影院一区二区三区| 亚洲免费在线看| 欧美日韩亚洲高清一区二区| 日韩中文字幕亚洲一区二区va在线| 欧美午夜精品久久久久久孕妇| 亚洲6080在线| 欧美成人一级视频| 91在线视频播放| 日韩成人精品视频| 久久久精品2019中文字幕之3| 成人性视频免费网站| 亚洲女人****多毛耸耸8| 欧美调教femdomvk| 国产精品12区| 亚洲成人第一页| 中文字幕av资源一区| 欧美蜜桃一区二区三区| 国产成人精品午夜视频免费 | 一区二区三区中文在线观看| 欧美日韩视频在线第一区 | 亚洲综合色自拍一区| 亚洲成人动漫精品| 日韩午夜在线播放| 天堂av在线一区| 欧美性大战xxxxx久久久| 亚洲美女精品一区| 欧美日韩成人综合| 久久国产精品第一页| 国产一区 二区| 国产精品久久夜| 国产精品无人区| 欧美少妇一区二区| caoporm超碰国产精品| 国产一区二区0| 五月综合激情网| 首页国产丝袜综合| 亚洲卡通动漫在线| 一区二区三区在线看| 日韩毛片高清在线播放| 中文字幕一区二区三区蜜月 | 蜜臀精品一区二区三区在线观看| 1区2区3区国产精品| 国产精品色婷婷| 欧美性猛交一区二区三区精品| 色综合久久中文字幕综合网 | a在线播放不卡| 国产无人区一区二区三区| 中文在线资源观看网站视频免费不卡 | 91亚洲精华国产精华精华液| 成人动漫精品一区二区| 91免费观看国产| 日韩一区二区三区视频在线 | 国产精品久久久久久久久果冻传媒| 国产精品第一页第二页第三页| 亚洲男人的天堂在线aⅴ视频| 亚洲综合色在线| 国产成人综合自拍| 91搞黄在线观看| 精品国产一区二区三区不卡 | 久久电影网站中文字幕| 国模套图日韩精品一区二区| 久久网站最新地址| 成人一区二区视频| 午夜私人影院久久久久| 精品国产乱码久久久久久久久| 丁香天五香天堂综合| 国产精品视频观看| 欧美日韩国产综合视频在线观看| 日韩精品亚洲专区| 久久久一区二区三区| 欧美亚洲国产一区二区三区va | 欧美一区日韩一区| 国产在线播放一区三区四| 国产欧美一区二区三区鸳鸯浴 | 91浏览器入口在线观看| 日韩成人精品在线观看| 国产精品免费丝袜| 精品国精品自拍自在线| 日本aⅴ免费视频一区二区三区| 国产精品自拍av| 亚洲免费三区一区二区| 欧美亚洲国产一区二区三区| 韩国v欧美v亚洲v日本v| 亚洲伊人色欲综合网| 久久综合色综合88| 欧美日韩国产在线播放网站| 激情综合一区二区三区| 日韩一区中文字幕| 2023国产一二三区日本精品2022| 99精品1区2区| 国产在线不卡一区| 日日欢夜夜爽一区| 成人欧美一区二区三区白人| 精品少妇一区二区| 国产精品美日韩| 日韩精品最新网址| 日韩电影免费一区| 在线不卡一区二区| 欧美精品丝袜久久久中文字幕| 欧洲一区在线观看| 91精品国产日韩91久久久久久| 精品欧美久久久| 国产精品国产三级国产aⅴ中文| 中文字幕一区二区在线播放| 欧美性猛交xxxx乱大交退制版 | 欧美视频一区在线| 成人国产精品免费观看| 亚洲成av人片观看| 亚洲一区二区美女| 国产精品国产三级国产aⅴ原创| 日韩视频一区二区三区在线播放| 欧美天堂一区二区三区| 国产福利精品导航| 国产盗摄视频一区二区三区| 国产精品一区二区x88av| 午夜视频一区在线观看| 视频在线在亚洲| 偷拍亚洲欧洲综合| 韩国女主播一区| 99久久久精品免费观看国产蜜| 91在线porny国产在线看| 在线观看一区不卡| 欧美一区午夜视频在线观看| 欧美电视剧在线观看完整版| 日韩欧美一二三四区| 国产欧美日韩中文久久| 亚洲男人电影天堂| 强制捆绑调教一区二区| 国产凹凸在线观看一区二区| 色狠狠色噜噜噜综合网| 日韩精品中文字幕一区| 日本一区二区三区四区在线视频 | 欧美一区二区三区免费视频| 久久久噜噜噜久久人人看 | 亚洲精品高清在线| 亚洲国产一二三| 91丨九色porny丨蝌蚪| 欧美精品一区二区三区四区| 亚洲欧洲综合另类| 激情国产一区二区 | 国产综合一区二区| 色狠狠桃花综合| 亚洲日本欧美天堂| 99免费精品视频| 国产欧美va欧美不卡在线| 美女精品一区二区| 日韩欧美国产综合一区 | 欧美乱妇15p| 亚洲国产精品久久艾草纯爱| 国产一区二区三区免费播放| 日韩一级二级三级精品视频| 日韩av一区二| 久久亚洲私人国产精品va媚药| 老司机精品视频一区二区三区| 日韩视频一区二区在线观看| 免费观看一级欧美片| 久久久www成人免费毛片麻豆| 欧美国产乱子伦 | 一区二区三区日韩精品视频| 成人国产亚洲欧美成人综合网 | proumb性欧美在线观看| 欧美韩日一区二区三区| 91啪在线观看| 久久国产精品99久久久久久老狼| 中文成人综合网| 欧美电影影音先锋| 国产不卡在线视频| 午夜精品福利久久久| 久久欧美一区二区| 欧美日韩日日骚| av午夜一区麻豆| 极品少妇xxxx精品少妇| 亚洲国产欧美在线人成| 欧美激情综合五月色丁香| 91精品中文字幕一区二区三区| 国产成人自拍网| 韩国视频一区二区| 亚洲v日本v欧美v久久精品| 中日韩av电影| 久久久精品免费网站| 日韩精品一区二区在线| 777精品伊人久久久久大香线蕉| 91首页免费视频| xvideos.蜜桃一区二区| 7777精品伊人久久久大香线蕉 | 亚洲18女电影在线观看| 香蕉加勒比综合久久| 亚洲成人动漫一区| 亚洲综合av网| 天天综合色天天综合色h| 亚洲一区二区精品久久av| 亚洲麻豆国产自偷在线| 18欧美乱大交hd1984| 亚洲另类春色国产| 亚洲人成7777| 日韩高清国产一区在线| 韩国视频一区二区|