加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代做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++語言程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    国产一区不卡| 欧美精品国产白浆久久久久| freexxx性亚洲精品| 国产精品tv| 成人久久精品| 日本久久久久| 日韩综合网站| re久久精品视频| 日韩va亚洲va欧美va久久| 国产精品久久久久久模特 | 午夜亚洲激情| 精品久久视频| 国产最新精品| 日本欧美一区二区三区乱码| 欧美成人精品一区二区男人小说| 99成人免费视频| 日本精品影院| 香蕉成人app| 高清在线一区二区| 久久免费影院| 免费成人在线电影| caoporn视频在线观看| 一区视频在线看| 欧美99在线视频观看| 欧美亚洲tv| 深夜福利一区二区三区| 亚洲网站三级| 久久丝袜视频| 免费亚洲婷婷| 日本一区二区三区视频| 黄色在线免费观看网站| 老牛影视一区二区三区| 欧美大黑bbbbbbbbb在线| 美女视频亚洲色图| 99精品国产一区二区三区2021| 亚洲精品中文字幕99999| 欧美国产专区| 亚洲精品护士| 青青草97国产精品免费观看无弹窗版| 嫩草伊人久久精品少妇av杨幂| 国产不卡人人| 欧美aaaa视频| 国产精品蜜芽在线观看| 日韩精品一级二级| 男男视频亚洲欧美| 日韩不卡一区| 黄色在线网站噜噜噜| 国模套图日韩精品一区二区| av资源中文在线天堂| 水蜜桃久久夜色精品一区| 97久久夜色精品国产| 97精品国产福利一区二区三区| 免费看欧美女人艹b| 久久av一区| 蜜臀av性久久久久蜜臀aⅴ| 亚洲专区一区二区三区| 99日韩精品| 丝瓜av网站精品一区二区 | 亚洲黄色中文字幕| 成人av观看| 日本欧美不卡| 国产精品亚洲综合久久| 日韩高清不卡一区二区| 亚洲天堂网站| 日韩欧美中文在线观看| 红杏aⅴ成人免费视频| 日韩精品一区二区三区免费观影| 99久久影视| 91久久综合| 国产在线看片免费视频在线观看| 日韩激情免费| 久久一区中文字幕| 国内不卡的一区二区三区中文字幕| 国产一区二区三区四区五区传媒| 久久在线观看| 999久久久免费精品国产| 99国产精品久久久久久久| 丝袜美腿高跟呻吟高潮一区| 日韩中文影院| 亚洲精一区二区三区| 日韩深夜影院| 亚洲图片在线| 久久亚洲不卡| 日韩毛片网站| 欧美久久一区二区三区| 红杏视频成人| 亚洲男女自偷自拍| 日韩三区免费| 国产成人1区| 色爱av综合网| 亚洲精品影视| 91青青国产在线观看精品| 第四色男人最爱上成人网| 麻豆国产精品一区二区三区| 精品国产一区二区三区性色av | 国产美女亚洲精品7777| 欧美日中文字幕| 日韩精品一卡二卡三卡四卡无卡| 日本美女久久| 婷婷精品在线| 五月天综合网站| 免费观看亚洲| 高清一区二区| 国模 一区 二区 三区| 蜜臀久久99精品久久久画质超高清| 成人在线视频观看| 久久精品九色| 国产精品丝袜xxxxxxx| 欧美成人一二区| 久久九九精品视频| 在线综合亚洲| 一区二区三区成人精品| 欧美三区不卡| 日韩专区欧美专区| 国内一区二区三区| 成人久久一区| 日韩成人三级| 日韩av一区二区在线影视| 欧美日韩国产综合网| 国产一区二区色噜噜| 精品国产18久久久久久二百| 国产美女一区| 亚洲香蕉久久| 激情91久久| 亚洲精品乱码久久久久久蜜桃麻豆| 高清日韩中文字幕| 亚洲最新无码中文字幕久久| 高清一区二区三区av| 欧美特黄一级| 麻豆国产精品官网| 欧美福利一区| 日日噜噜夜夜狠狠视频欧美人| 精品在线网站观看| 电影天堂国产精品| 粉嫩一区二区三区四区公司1| 激情aⅴ欧美一区二区欲海潮| 日韩超碰人人爽人人做人人添| 亚洲一区久久| 欧美成人精品午夜一区二区 | 吉吉日韩欧美| 视频一区日韩精品| 久久久久久穴| 亚洲影院天堂中文av色| 视频在线观看国产精品| 电影一区二区三区久久免费观看| 夜夜夜久久久| 国产伦精品一区二区三区视频| 久久大逼视频| 日韩精品导航| 成人av观看| 国产精品主播在线观看| 成人性片免费| 亚洲大片在线| 欧美精品97| 日韩88av| 加勒比视频一区| 色综合久久久| 精品麻豆剧传媒av国产九九九| 亚洲激情女人| 啪啪亚洲精品| 亚洲播播91| 91精品一区二区三区综合在线爱| 久久伊人亚洲| 首页亚洲欧美制服丝腿| 日韩精品视频中文字幕| 国产一区二区av在线| 天天揉久久久久亚洲精品| 一区二区免费不卡在线| 日本女优一区| 欧美黄色影院| 欧美区国产区| 亚洲国产欧美日本视频| 久久婷婷蜜乳一本欲蜜臀| 亚洲最大av| 亚洲v.com| 天天影视欧美综合在线观看| 国产精品入口久久| 日韩国产综合| 在线精品视频在线观看高清| 国产一区二区三区探花| 日本蜜桃在线观看视频| 九九综合久久| 日韩1区2区日韩1区2区| 久久久久久久性潮| 亚洲免费在线| 色哟哟精品丝袜一区二区| 综合激情视频| 欧美疯狂party性派对| 久久三级视频| 日韩高清电影免费| 日本免费一区二区三区等视频| 老司机一区二区三区| 久久国产精品免费精品3p | 日韩激情综合| 久久精品人人做人人爽电影蜜月| 日韩精品一卡二卡三卡四卡无卡 | 老牛嫩草一区二区三区日本| 久久精品青草| 视频二区欧美| 国产精品成人**免费视频|