首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
讲解CPT106编程、辅导Software程序、c/c++编程调试 讲解Java程序|辅导Python编程
项目预算:
开发周期:
发布时间:
要求地区:
CPT106 Assessment 3
1
CPT106 C++ Programming and Software Engineering II
Assessment 3
Assessment Number 3
Contribution to Overall Marks 35%
Release Date Tuesday, 20-April-2021, 23:59
Submission Deadline Wednesday, 5-May-2021, 23:59
How the work should be submitted?
SOFT COPY ONLY !
(This is an INDIVIDUAL WORK and MUST be submitted through Learning Mall so that the
TAs can run your programs during marking.)
1. Make sure your name and ID are printed on the cover page of your report.
2. A short report named with your student ID number with up to a few pages in PDF
format should be submitted to Learning Mall.
3. C++ source code files for all questions should be zipped into a single file named
with your student ID number and submitted to Learning Mall.
4. The report and zipped source code file should be submitted separately to two
different submission boxes on Learning Mall.
5. Late Submission Policy: 5% of the total marks available for the assessment shall be
deducted from the assessment mark for each working day after the submission date,
up to a maximum of five working days.
Assessment Overview
This assessment aims at testing some basic concepts of C++ programming and initiates the routine of
code development using the software development process (SDP). The report should include five main
steps (step 1-5 below) of the software development process, and the marking criteria is as follows:
1. Problem statement: formulate the problem. (10 marks)
2. Analysis: determine the inputs, outputs, variables, classes, class relationships, etc. (10 marks)
3. Design: use flow chart or UML activity diagram to define the main steps (the algorithm) needed
to solve the problem. (10 marks)
4. Implementation: the C++ code hasto be submitted as a zipped file. Just indicate here the name of
the file.(40 marks, further divided in page 3)
5. Testing: explain how you have tested and verified your C++ program and include some sample
runs of your C++ Programs. Testing result must be shown by screenshot and included in your
report. (20 marks)
6. The overall quality of report, including structure, writing, etc. (10 marks)
CPT106 Assessment 3
2
Line fitting algorithms
Given a set of x,y data points, it is often necessary to automatically calculate an equation
which gives the best fit line through the data. This type of analysis is known as line fitting
or regression analysis.
The mathematical basis behind line fitting is quite straightforward. You have a set of data
points represented by (x1,y1), (x2,y2) ..... (xn, yn). You want an equation which represents
this data, the exact type of equation will depend on the way in which the data varies. Given
any mathematical relationship between x and y it should be possible to generate a line
fitting algorithm. The line fitting algorithm is described below.
Straight line
The equation for a straight line is: y = ax + b. Suppose that we have n points of (x,y) values
from the text file, the values of a and b for the best fit line that is the best approximation of
the given set of data points can be obtained from the following equation:
is the difference between the two dot
products (a1b2 - a2b1). It is easy to create a C++ program to calculate its value.
Distance
The distance from a point P(x,y) to the line ax+by+c=0 is the length of the perpendicular
line from the point P to the line:
Distance =
|ax+by+c|
√𝑎2+𝑏
2
where (x,y) is the coordinate value for point P.
Standard error of distance for all the points: SE=√
∑ (𝑥𝑖−𝑥̅)
𝑛 2
𝑖=1
𝑛−1
Where 𝑥̅is the mean distance of all points, 𝑥𝑖
is the distance of Point Pi , n is the number of all
points.
CPT106 Assessment 3
3
Please complete the assessment according to the following steps: (40 marks)
1. Create a file operation class “FileOp” with functions as follows: (12 marks, 3 marks per question)
a) It can allow users to input points from the keyboard and save these points into a text file.
b) It can read points from the text file.
c) It can delete a point from the text file.
d) It can check if a point is in the text file.
2. Create a class “LineFitting” with functions as follows: (15 marks, 3 marks per question)
a) It can calculate the parameters of a, b and c for the best fit line ax+by+c=0.
b) It can calculate the distance between each point in your file and the best fit line.
c) It can find the best point from the file, which is not in the best fit line but has the minimal
distance compared to other points.
d) It can find the worst point from the file, which has the maximal distance compared to other
points.
e) It can calculate the standard error of distance for all the points.
3. Create a main method in you program to achieve follow functions: (13 marks)
a) Create a main method. (1 mark)
b) Create a text file using the “FileOp” class with some points. (2 marks)
c) Print out the equation of the best fit line (e.g. 3x+2y+3=0). (2 marks)
d) Ask the user to input a point and print out whether the point is in the text file or not, if it is
in the file then print out its position. (2 marks)
e) Print out the worst point that has a maximal distance to the best fit line in all the points. (2
marks)
f) Print out the standard error for all the points. (2 marks)
g) Ask user to input a point and delete it from the file if the point exists in the text file. (2 marks)
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
data程序代写、代做c/c++编程语...
2024-05-17
data程序代写、代做python编程...
2024-05-17
program代做、c/c++,python程...
2024-05-17
代写math 3333 3.0 - winter 2...
2024-05-17
代做seng6110 programming ass...
2024-05-17
代写seng6110 object oriented...
2024-05-17
代写comp828: statistical pro...
2024-05-17
代做culture and society调试数...
2024-05-17
代做comp 4911 winter 2024 as...
2024-05-17
代做lh physical iiib / 03 33...
2024-05-17
代做3032ict big data analyti...
2024-05-17
代写comp4702 report代写留学生...
2024-05-17
代写fin2020 hw6代写c/c++编程
2024-05-17
热点标签
fit2004
fit3152
mec208
econ20120
cpt304
econ2101
econ0051
engi4547
econ1048
eengm2510
fit1008
7033mkt
ec2066
cct380h5f
man00019m
mech265001
fin2020
fit9137
n1542
csc4140
math6119
comp1710
fina864
csys5020
busi4412
math5007
2702ict
dts204tc
comp2003j
cosc2673
ecmt2150
bff3121–
comu7000
stat6118
comp814
acc202
ematm0067
bit233
ecs776p
600543
bpln0025
comp3400
econ7030
159.342 ‐ operating
mang6134
math1005/math6005
geog5404m
comp1710/6780
infs 2042
inf6028
bman30702
math0002
msci242l
mgt11001
com00177m
bman71282
fit2001
cpt210
159.341
econ7310
comp3221
comp10002
cpt206
ecmt1010
finm081
econ2005
cpt202
fit3094
socs0030
data7201
data2x01
mn-3507
mat246h1
ib2d90
ib3j80
acc207
comp90007
compx518-24a
fit1050
info1111
acct2201
buad801
compsci369
cse 332s
info1110
math1033
scie1000
eeee2057
math4063
cmt219
econ5074
eng5009
csse2310/csse7231
ec333
econ0001
cpt204
elec4630
ma117
dts104tc
comp2017
640481
csit128
eco000109m
finc5090
ggr202h5f
nbs8295
4ssmn902
chc6171
dsa1002
ebu6304
comp1021
csci-ua.202
com6511
ma416
mec206
iom209
bism7202
idepg001
cpt106
comp1212
ecom209
math1062
mn-3526
fnce3000
fmhu5002
psyc10003
fina2222
be631-6-sp/1
finc2011
37989
5aaob204
citx1401
econ0028
bsan3204
comp9123
cmt218
itp122
qbus6820
ecmt1020
bus0117
soft3202/comp9202
basc0057
mecm30013
aem4060
acb1120
comp2123
econ2151
ecmt6006
inmr77
com 5140
ocmp5328
comp1039
had7002h
cmt309
asb-3715
elec373
cpt204-2324
be631-6-sp
econ3016
mast10007
buss6002
comp4403
comp30023
finm1416
csc-30002
6qqmn971
fin668
mnfg309
inft2031
cits1402
comp2011
eecs 3221
ebu4201
ct60a9600
com336
8pro102
econ7300
comp3425
comp8410
comp222
finm8007
comp2006
comp26020
comp1721
eeen3007j
cis432
csci251
comp5125m
com398sust
finm7405
econ7021
fin600
infs4205/7205
mktg2510-
32022
mth6158
comp328
finn41615
2024
mec302
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!