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

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

代寫CPT206、代做Java編程設計

時間:2024-05-14  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Computer Programming for
Coursework 3 Task Specification
Thomas Selig
Set: Monday, 6 May, 2024
     
This is the specification task sheet for the Coursework 3 assessment component of your CPT206
      modul    e.   
        This assignment has two parts: a coding part described in Section 1, and
    a report described in Section 2. The submission deadline for this assignment is    ,   
2024, at 23:59 (China-time). Detailed submission instructions are provided in Section 3.
1 Program description (70 marks)
The aim of this coursework is to build a system which manages investments in companies’ shares. All
the work should be coded into a single Java NetBeans project, with the class structure and different
functionalities of the program described below. All classes should be properly encapsulated, as seen
in the Lectures and Labs throughout the semester. Your project should also contain a Controller
class for testing. You may leave some or all of your test code in the Controller class if you wish
when submitting, but no marks are allocated for this class’s contents in your submission. Instead
you will be asked to describe your testing in the report (see Section 2.3), and marked on that.
1.1 Market class (7 marks)
The Market class represents the current companies that are on the market, that is whose shares
can be traded (bought or sold). It therefore stores a collection of Company objects (see Section 1.2).
Any company can only appear on the market at most once. The class should also have methods
add() and remove() to add or remove a given company from the market, and contains() to check
if a given company is on the market or not. There will only be one market in the program, so all
members of the class should be static.
1.2 Company class (25 marks)
A Company object should store its (legal) name, a stability coefficient (a percentage between 0
and 100) indicating how stable its share prices are, and the history of its share prices. When a
Company object is created, its initial share price is specified (as well as the name and stability
coefficient). The history then consists of this initial share price. The Company class should have a
method getCurrentSharePrice() which returns the current share price of the company (this will
be the last share price in its history) and a method getInitialSharePrice() which returns the
1
initial share price of the company (this will be the first share price in its history). There should
be methods to add or remove the company from the market, and to check if it is currently on the
market. There should be a method updateSharePrice() to update the valuation of a company’s
share price, according to the following formula:
Sharenew = Sharelast (1 + (1 − stab) ∗ U),
where:
• Sharenew is the new current share price of the property (after update);
• Sharelast is its old current share price (before update);
• stab is the company’s stability coefficient;
• U is a uniform random variable on the interval [−1, 1].
The new share price should then be added to the company’s history (as its last element).
Finally, there should be a method getTrend(int movementNumber, int significance) to
determine the trend of a company’s share value based on a number of recent movements. Given
two share prices in a company’s history s1 and s2, the movement is simply the difference s2 −s1. A
movement is consecutive if it is between two consecutive share prices in the company’s history. A
movement is considered significant if the ratio |s2−s1|
s1
is greater than or equal to the significance
threshold. Otherwise it is insignificant. Here, the integer significance represents a percentage,
so the significance threshold should be the ratio significance / 100. The trend of the company
is then calculated by looking at the last movementNumber consecutive movements as follows.
• If strictly more than half of these are significant increases, and the share price has overall
increased significantly over the whole period, then the trend is increasing.
• If strictly more than half of these are significant decreases, and the share price has overall
decreased significantly over the whole period, then the trend is decreasing.
• If strictly more than half of these are insignificant, and the share price movement over the
whole period is also insignificant, then the trend is stable.
• Otherwise, the trend is uncertain. This includes the case where there is insufficient data in
the history.
For example, suppose movementNumber = 3, and the last four values in a company’s share history
are [100, 105, 97, 103], so that the last three consecutive movements are +5, −8, +6. The overall
movement over this period is 103 − 100 = 3.
• If the significance threshold is equal to 3% (or less), then the trend is increasing: the
consecutive movements +5 and +6 both meet the significance threshold (this is a strict
majority of them), as does the overall movement.
• If the significance threshold is equal to 7% (or more), then the trend is stable: the consecutive
movements +5 and +6 are both within the stability threshold, as is the overall movement.
• If the significance threshold is equal to 5%, then the trend is uncertain: while there are two
significant increases in the consecutive movements, the overall movement is too small to be
significant.
• If the significance threshold is equal to 6%, then the trend is also uncertain: the consecutive
movement +5 is insignificant, −8 is a significant decrease, and +6 is a significant increase, so
there is no majority of consecutive movement type.
2
1.3 (Basic)Strategy class (12 marks)
The investor will need to devise strategies determining when they should invest in a given company,
and how many shares they should buy when doing so. The building block for this will be a Strategy
interface, with a method invest(company) that takes as parameter a Company object, and returns
the number of shares to invest in based on the company’s current performance in the market. The
number returned is a signed integer, with a negative value indicating that the investor should sell
shares in that company.
The strategy should then be implemented through a BasicStrategy class. This class should
store a maxTransaction variable, indicating how much they are willing to invest or divest in shares
in a given transaction. It should also store variables movementNumber and significance. The
implementation of the invest(company) method should first calculate the company’s trend based
on these two variables, and then decide how much to invest/divest as follows.
• If the company’s trend is stable or uncertain, there is no investment to be made (the method
should return 0).
• If the company’s trend is increasing, the investor should buy shares. The number they buy
is equal to the maximal value such that they spend no more than maxTransaction on the
transaction.
• If the company’s trend is decreasing, the investor should sell shares. As above, the number
they sell is equal to the maximal value such that they receive no more than maxTransaction
from the transaction.
1.4 Investor class (16 marks)
Finally, your project should have an Investor class, responsible for managing investment in the
market (this could be an individual investor, or a company’s own investments in the market, for
example). Each investor should have a collection of companies (on the market) they are interested in
investing in. The investor should then associate to each of these a Strategy dictating how they will
invest, and the number of shares in the company they currently own. By default, Investor objects
are created with no companies of interest. They can also be created with a specified collection of
such companies together with their corresponding strategies, but no shares in any of the companies.
The various functionalities of the class are as follows.
• Investors can select a new company they are interested in, along with a specified strategy for
investing in that company (as above, initially they will have no shares in the company).
• Investors can decide they are no longer interested in a particular company. In that case, they
sell all the shares they currently own in that company, and it is removed from their collection
of interested companies.
• Otherwise, investment or divestment is entirely automatic, via an updateInvestment()
method. This updates the share prices of all companies the investor is interested in. For
each of these, the investor then runs the invest() method from the corresponding strategy,
and chooses to buy or sell shares according to this method’s output. This will potentially
modify the number of shares the investor currently holds in that company. Note that if the
output of invest() would cause the investor to sell more shares in a company than they
currently own, they should simply sell all of the owned shares.
3
1.5 Code quality (10 marks)
The remaining marks (10) will be awarded for the quality of your code, as covered throughout the
semester in the Lectures and Labs.
• Keep your code neat and tidy; make sure it is properly indented throughout.
• Choose suitable names for variables and methods, respecting standard Java naming conventions.
• Comment your code as needed.
• Split your code into separate methods as appropriate; methods should not be too long.
2 Report (30 marks)
For this part of the assignment, you will write a report detailing how you designed, implemented,
and tested the program described in Section 1. The report should be typed into e.g. a Word
document, and submitted as a PDF (see Section 3 for more details). Where suitable in the report,
you should refer to specific lecture slides (or parts of Lab worksheets), e.g. “as seen in Lecture 10,
slides **-34”.
2.1 Collection choices (5 marks)
In the project, there are a number of classes which will use elements from the Java collection
framework. For example, the Market stores a collection of Company objects, while a Company stores
its history of share prices. For each use of a Java collection in your program, you should state and
justify here your choice of collection object. This section should be under one page in length.
2.2 OOP features (10 marks)
Over the course of the semester, you have learned a number of OOP features (e.g. encapsulation)
and principles (e.g. single responsibility principle). In your report, you will explain where you
have incorporated these in your design and how you have done so; include a brief definition of
the features/principles in question. Be as precise as possible, illustrating with small portions of
code if necessary. Note that not all the features and principles we saw in the lectures need to be
incorporated into your design; your report should only discuss those that are. This section should
be one-and-a-half to two pages in length.
Good example: The Single Responsibility Principle states that every class in the program
should have responsibility over a single functionality of the program; a class should do one thing.
This principle is incorporated into our class design: all the classes have their own, separate, purpose.
For instance, the Company class1
...
Bad example: Encapsulation and inheritance are two core features of OOP; they are used in
many parts in my program.
2.3 Testing description (10 marks)
As covered throughout the Lectures and Lab sessions in this module, testing is an essential part of
writing computer programs. In your report, you will include a description of how you tested the
1Give a brief description of the purpose of the Company class here.
4
various parts of the program described in Section 1. You will state clearly what functionalities you
tested, and describe how you tested them, thinking carefully about possible corner cases. You may
include some sample code if you wish. You should test in the Controller class of your project,
using only tools and techniques that we covered in the Lectures and Labs throughout the semester.
You must NOT use any new or more advanced tools such as JUnit that weren’t taught. This
section should be one-and-a-half to two pages in length (screenshots excluded).
2.4 Model discussion (5 marks)
In this part, you should critically discuss the chosen investment strategy in BasicStrategy. Is
this a realistic model? What are some of its limitations? What would a more realistic strategy
look like? You may include possible implementations of alternate strategies if you wish. This part
should be no more than one page in length.
3 Submission instructions
In the dedicated “Coursework 3 submission” Assignment activity on the Learning Mall Online, you
will need to submit the following two (2) documents.
• A single ZIP archive of your entire NetBeans project. Include all the resources your
       projec  t needs to run. This file   will be named _CW3_Project_studentId.zip”.
• Your report from Section 2, typed into e.g. a Word document, and converted into a PDF
   file. This  file will be named “    _CW3_Report_studentId.pdf”.
The submission deadline is: Sunday, 26 May, 2024, at 23:59 (China-time).
This assignment is individual work. Plagiarism (e.g. copying materials from other sources
without proper acknowledgement) is a serious academic offence. Plagiarism and collusion will not
be tolerated and will be dealt with in accordance with the University Code of Practice on Academic
Integrity. Submitting work created by others, whether paid for or not, is a serious offence, and
will be prosecuted vigorously. The use of generative AI for content generation is not permitted
on this assignment. Such a use would be considered in breach of the University Code of Practice
on Academic Integrity, and dealt with accordingly. Individual students may be invited to explain
parts of their code in person during a dedicated interview session, and if they fail to demonstrate
an understanding of the code, no credit will be given for that part of the code.
Late submissions. The standard University policy on late submissions will apply: 5% of
the total marks available for the component shall be deducted from the assessment mark for each
working day after the submission date, up to a maximum of five working days, so long as this does
   not re  duce the mark below the ; submissions more than five working days late will
not be accepted.
       
      We can - and will - discuss some aspects in the Lab sessions,
and of course, as usual, you can ask me anything by email, during Office Hours, or in the LMO
Forums. Good luck!


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













 

掃一掃在手機打開當前頁
  • 上一篇:代寫CSCU9S2 Data Analysis
  • 下一篇:代做CNSCC.361、代寫MATLAB編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業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 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产欧美婷婷中文| 午夜伦理精品一区| 国产精品久久亚洲7777| 国产精品无码一本二本三本色| 精品免费国产一区二区| 日韩精品大片| 不卡视频一区| 久久国产精品免费视频| 热久久美女精品天天吊色| 99久久精品免费看国产一区二区三区| 欧美一区二区三区在线免费观看| 国产日韩综合一区二区性色av| 成人精品视频久久久久| 国产精品欧美久久| 日韩亚洲在线视频| 91精品啪在线观看麻豆免费| 国产精品高潮呻吟视频| 欧美精品久久| 久久久久久久久国产精品| 午夜精品一区二区三区四区| 国产欧美精品日韩| 久久亚洲影音av资源网| 亚洲aaa激情| 国产日韩欧美二区| 国产精品狼人色视频一区 | 精品免费久久久久久久| 日本久久久久亚洲中字幕| 97人人爽人人喊人人模波多| 中文字幕不卡每日更新1区2区| 蜜臀久久99精品久久久酒店新书| 久久久久一区二区三区| 日韩中文字幕组| 99热成人精品热久久66| 这里只有精品66| 国产日韩精品在线播放| 国产精品久久久久久久久影视| 青青视频免费在线| 久久视频这里有精品| 亚洲国产一区二区三区在线| 成人久久久久久| 在线播放 亚洲| 日韩国产精品毛片| 久久九九视频| 日本午夜精品电影| 久久久久久亚洲精品中文字幕| 日本久久久久久久久| 久久久国产精品一区二区三区| 日韩在线观看a| 91九色国产在线| 在线观看一区欧美| www日韩视频| 亚洲国产精品综合| 91久久久精品| 亚洲精品一区二区三区蜜桃久 | 久久精品日产第一区二区三区 | 国产av天堂无码一区二区三区| 少妇久久久久久被弄到高潮| 国产精品7m视频| 日本亚洲导航| 久久久久久久一区二区| 青青草视频在线免费播放| 久久精品一偷一偷国产| 国内精品久久久久久中文字幕| 国产精品欧美一区二区| 欧美 日韩 国产在线| 日韩 欧美 高清| 国产成人女人毛片视频在线| 国产免费色视频| 欧美在线视频免费| 一区二区三区在线观看www| 久久久久久九九九| www.九色.com| 欧美黄色免费影院| 亚洲精品无人区| 国产精品嫩草影院一区二区| 99精品一区二区三区的区别| 欧美精品久久久| 日韩中文字幕在线视频观看| 欧美日本精品在线| 国产成人无码a区在线观看视频| 成人精品水蜜桃| 狠狠色综合色区| 日本精品视频在线观看| 一区二区在线观看网站| 久久视频国产精品免费视频在线| 91免费精品国偷自产在线| 内射国产内射夫妻免费频道 | 国产一级不卡毛片| 日批视频在线免费看| 欧美精品在线观看91| 久久久久久久久国产| 91免费福利视频| 国产日韩在线播放| 欧美日韩一区二区三区电影| 日本午夜人人精品| 懂色av粉嫩av蜜臀av| 中文字幕乱码人妻综合二区三区| 国产精品视频播放| 日韩有码在线视频| 久久人人九九| 91免费的视频在线播放| 国产精品一区二区三区成人| 精品人妻大屁股白浆无码| 亚洲高清在线观看一区| 久久91亚洲精品中文字幕| 国产精品日韩在线观看| 久久久久久久久久久91| 国产成人精品日本亚洲11| 91麻豆国产语对白在线观看| 高清视频欧美一级| 国产免费黄色av| 国产一区二区不卡视频在线观看| 欧美午夜性视频| 日韩精品资源| 日韩免费观看网站| 日韩亚洲欧美精品| 日本精品一区二区三区不卡无字幕 | 国产精品久久电影观看| 久久久久久久久久久免费精品 | 国产伦精品一区二区三区免费视频 | 日本一区二区三区在线播放| 丁香六月激情婷婷| 亚洲影视九九影院在线观看| 欧美激情小视频| 国产aaa精品| 超在线视频97| 国产精品福利无圣光在线一区| 国产精品视频内| www.欧美精品一二三区| www亚洲欧美| 国产精品久久中文字幕| 久久精品小视频| 国产精品视频一区国模私拍| 久久精品视频亚洲| 国产精品乱子乱xxxx| 久久av资源网站| 欧美激情精品久久久久久变态| 久久99久久亚洲国产| 亚洲五月六月| 亚洲一区二区在线| 日本在线精品视频| 欧美怡春院一区二区三区| 欧美人与性禽动交精品| 蜜桃免费区二区三区| 春色成人在线视频| 99视频在线播放| 国产亚洲欧美一区二区三区| 国产伦精品一区二区三区照片91| 国产男女猛烈无遮挡91| 欧美乱偷一区二区三区在线| 日韩欧美不卡在线| 欧美高清视频一区二区三区在线观看| 激情六月天婷婷| 国产精品一区二区久久国产| 久久久免费电影| 久久久久亚洲精品国产| 久久精品一偷一偷国产| 欧美精品一区三区| 亚洲精品高清国产一线久久| 青青在线免费观看视频| 国产在线精品二区| av资源一区二区| 久久99久久精品国产| 国产精品高潮粉嫩av| 亚洲日本欧美在线| 欧美性视频在线| 国产精品一二区| 国产成人一区二| 国产精品成人一区二区三区| 熟女少妇精品一区二区| 美女精品国产| 2019日本中文字幕| 国产精品日韩av| 亚洲av首页在线| 好吊色欧美一区二区三区四区| 99久久久久国产精品免费| 精品国产区一区二区三区在线观看| 另类天堂视频在线观看| 天天操天天干天天玩| 国产在线观看不卡| 久久免费视频观看| 国产999视频| 欧美精品一区二区三区四区五区| 97精品伊人久久久大香线蕉| 国产精品国产三级国产aⅴ浪潮| 欧美一区二区大胆人体摄影专业网站| 免费人成在线观看视频播放| 国产精品69久久久久| 欧美wwwxxxx| 欧美精品在线一区| 久久免费高清视频| 中文字幕第一页亚洲| 欧日韩在线观看| 久久久午夜视频| 综合久久国产| 国产男女无遮挡| 国产精品成人一区二区三区吃奶| 日本精品www| 久久久欧美一区二区| 欧美激情aaaa|