首页
编程语言
数据库
网络开发
Algorithm算法
移动开发
系统相关
金融统计
人工智能
其他
首页
>
> 详细
java辅导 Pengl Assignment java Programming讲解java Programming语言程序、java Programmi
48024 Applications Programming
Assignment 1
Topics: OO Design, Standard Patterns, Lists
Learning Outcomes: This assessment task addresses the following subject
learning objectives (SLOs): 1, 2 and 3
Due date: 11:59PM Sunday the 16th of September
Weight: 30%
1. Individual work
All work is individual. You may discuss ideas, approaches and problems, but you
should write every line of code yourself except for code copied from the lecture
notes, lecture code or lab code. You MUST NOT let another student see your
solution code, and you MUST NOT look at another student’s solution code. More
information about Academic Misconduct can be found at:
2. Specifcation
A friend of yours is setting up a computer building business, and to help
customers decide on what components they want in their system, your friend
has cajoled you, with the promise of cold pizza and fat coke, into writing some
software to help this process.
The system should keep a catalogue of available parts, which can be displayed
to the user, updated and fltered by type or price (or both).
The system should also allow the user to build a computer (more accurately a
parts list) from parts in the catalogue, add and remove parts from the build, clear
the build, see the build (including the total cost).
The interface for the prototype will be a simple text interface, where parts are
identifed by their position in the catalogue/build.
As an advanced feature, your friend would like the user to be able to add several
parts in one go.
Your friend has provided you with a nicely typed out text demonstration of how
the system should work, along with some tests (… yet didn’t just code it…) to
help.
An aside...
While reading the the frrt part of the rpecifcationn you will notice there ir a lot
going on.
? How many functionr did you identify?
? How many clarrer did you identify?
? What are the feldr in each clarr?
? How many goalr did you identify?
1
? How many patternr did you think of that might be applicable?
Thir arrignment will be challenging and you will probably want to manage your
time well.
? How long do you think it will take you to code the functionr?
? How long do you think it will take you to code each goal?
A good rule of thumb ir to think of an ertimaten and then multiply that number
by 3 or 4!
To manage your time welln you may need to fgure out which partr of the
arrignment you can rtart early.
If you complete partr in the rame week that you learn the topicr (while they are
frerh in your mind)n they will take lerr time to complete.
The User Interface
Below is a sample I/O trace. The green text indicates user input (you are not
expected to print colour text). Not every conceivable scenario is shown below
and you should submit your code to PLATE to see what specifc scenarios are
tested. You should also implement your solution in the same order as PLATE’s
test cases so that you can receive incremental feedback and marks as you
progress.
Welcome to Jaime's Computer Store
Quality Parts at the Best Prices
=================================
1. Catalogue Menu
2. Build Menu
3. Exit
Select option: 1
Welcome to the parts catalogue.
Enter choice (a/r/s/f/x): s
1. STORAGE: evo 860 @ $155.00
2. KEYBOARD: daskeyboard @ $239.00
3. CPU: i5 @ $365.00
4. MEMORY: corsair 16G @ $299.00
5. MOTHERBOARD: ASUS ROG @ $159.00
6. CASE: sheetmetal box @ $39.00
7. CPU: Ryzen 7 @ $299.00
Enter choice (a/r/s/f/x): f
Enter type of part to view ('all' for no filtering): cpu
Enter minimum price ('-1' for no filtering): -1
2
3. CPU: i5 @ $365.00
7. CPU: Ryzen 7 @ $299.00
Enter choice (a/r/s/f/x): a
Enter part name: coolermaster junk
Enter part type: case
Enter part price: 50.00
Enter choice (a/r/s/f/x): s
1. STORAGE: evo 860 @ $155.00
2. KEYBOARD: daskeyboard @ $239.00
3. CPU: i5 @ $365.00
4. MEMORY: corsair 16G @ $299.00
5. MOTHERBOARD: ASUS ROG @ $159.00
6. CASE: sheetmetal box @ $39.00
7. CPU: Ryzen 7 @ $299.00
8. CASE: coolermaster junk @ $50.00
Enter choice (a/r/s/f/x): x
1. Catalogue Menu
2. Build Menu
3. Exit
Select option: 2
Let's build a 1337 box!
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 3
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 1
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 2
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 4
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 5
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 6
Enter choice (n/a/r/v/c/x): c
The build is functional.
3
Enter choice (n/a/r/v/c/x): v
1. CPU: i5 @ $365.00
2. STORAGE: evo 860 @ $155.00
3. KEYBOARD: daskeyboard @ $239.00
4. MEMORY: corsair 16G @ $299.00
5. MOTHERBOARD: ASUS ROG @ $159.00
6. CASE: sheetmetal box @ $39.00
Total Price: $1256.00
Enter choice (n/a/r/v/c/x): r
Enter number of part to remove: 1
Enter choice (n/a/r/v/c/x): a
Enter catalogue number of the part: 7
Enter choice (n/a/r/v/c/x): v
1. STORAGE: evo 860 @ $155.00
2. KEYBOARD: daskeyboard @ $239.00
3. MEMORY: corsair 16G @ $299.00
4. MOTHERBOARD: ASUS ROG @ $159.00
5. CASE: sheetmetal box @ $39.00
6. CPU: Ryzen 7 @ $299.00
Total Price: $1190.00
Enter choice (n/a/r/v/c/x): c
The build is functional.
Enter choice (n/a/r/v/c/x): x
1. Catalogue Menu
2. Build Menu
3. Exit
Select option: 3
Requirements
? Your design will consist of exactly the following classes with the listed
felds, declared as indicated. You may not add or remove classes or felds,
however you may add constructors, functions and procedures to complete
your design (in fact, you will have to!). You should pay careful attention to
the tests on PLATE, as these will help guide you with some (but not all) of
these methods.
? Classes – your design will consist of these 5 classes:
1. ComputerBuilder
2. Build
4
3. Catalogue
4. Part
5. In (this is just the class you’ve been using throughout the labs to
facilitate simpler I/O – just copy it over)
? Fields – the classes will have the following felds:
public class ComputerBuilder {
private Catalogue catalogue;
private Build currentBuild;
}
public class Build {
private List
parts;
}
public class Catalogue {
private List
parts;
}
public class Part {
private String name;
private String type;
private double price;
}
? The felds also have some additional requirements and strictures:
1. Lists all have the abstract type of List<>, but must be instantiated
with a concrete type that implements the List<> behaviour (you will
see two of these in week 6, you can choose either – you may also
want to think about why you might do things this way).
2. The type String in Part is stored in lowercase.
? Constructors – the constructors of the class have the following
requirements:
1. All constructors initialise the felds of their class.
2. The ComputerBuilder constructor takes no parameters.
3. The Catalogue constructor takes no parameters, but will add some
initial Parts to the catalogue:
Name Type Price
evo 860 storage 155.00
daskeyboard keyboard 239.00
i5 cpu 365.00
Corsair 16G memory 299.00
ASUS ROG motherboard 159.00
5
sheetmetal box case 39.00
Ryzen 7 cpu 299.00
4. The Build constructor takes no parameters.
5. The Part constructor takes three parameters, corresponding to the
name, type and price, with the same types as the respective felds.
? toString() – Catalogue, Build and Part will each have a toString() function,
see the I/O trace and tests for the formats.
? The main method of the program will be in the ComputerBuilder class.
3. Expected workload
The time to do the assignment to a credit/distinction level has been estimated at
25 hours for a student of average ability who has completed all the tutorial and
lab exercises.
4. Online support
The Assignment 1 discussion board has been set up on UTSOnline so that
students can ask questions, and other students can reply. The course coordinator
will only post a reply only if the student response was wrong, or in the case of
correcting a mistake in the assignment specifcation.
You must not post or share Java code to the discussion board. The board
is there to help you, not to provide the solution. Posting your code is
academic misconduct and will reported. Each time this rule is violated, the
code will be removed and replaced with a comment of the form: “Strike 1:
Posting code”. After 3 strikes, the discussion board will be deleted because it did
not work.
FAQs (Frequently Asked Questions) and their answers will be posted on PLATE
alongside the assignment specifcation. If you have a question, check the FAQ
frst; it may already be answered there. You should read the FAQ at least once
before you hand in your solution, but to be safe check it every couple of days.
Anything posted on the FAQ is considered to be part of the assignment
specifcation. The FAQ will be frozen (no new entries) two days before the due
date; no questions will be answered after it is frozen.
If anything about the specifcation is unclear or inconsistent, contact the subject
coordinator who will try to make it clearer by replying to you directly and posting
the common questions and answers to the FAQ. This is similar to working on the
job, where you ask your client if you are unsure what has to be done, but then
you write all the code to do the task. Email luke.mathieson@uts.edu.au to ask for
any clarifcations or corrections to the assignment.
5. PLATE marking
Your solution is marked for correctness by by
comparing the output of your system to the output of the benchmark system.
You can submit a solution to PLATE many times; I urge you to do this, so you
6
receive credit for your work. Submission takes the same form as for the labs, you
must package your assignment in a JAR fle, including the source code.
PLATE will test the features of your program in a certain order: Classes and
felds, then constructors, then goals from basic to advanced. PLATE cannot test
the more advanced goals until the basic goals are working. To receive marks,
you must pass PLATE’s test cases in the order in which PLATE tests them.
Your code is marked by software, so you can get a good mark by fooling or
spoofng the software. If you spoof a task worth N marks, you receive a penalty
of 2*N marks.
6. Submission and return
Your solution is to be submitted to PLATE Assignment 1, in the same manner as
your labs – package in a JAR fle including the source code. Your provisional mark
and feedback is generated immediately each time you submit to PLATE.
However, analysis of spoofng, plagiarism, collusion and general cheating is done
in the two weeks following the due date. If you are suspected of Academic
Misconduct, I will forward your case to the Misconduct Committee and will notify
you by email.
There is no scheduled late submission period. An extension of up to one week
may be given by the subject coordinator before the due date; you have to supply
documentary evidence of your claim. An extension CANNOT be given after the
due date.
You may also apply for special consideration for reasons including unexpected
health, family or work problems. More information about how to apply for special
consideration can be found at
7. Marking scheme
The marks for the assignment are divided into the following functionality
components (note that individual tests may test several functionality
components, and a functionality component may be tested by several tests):
联系我们
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-21:00
微信:codinghelp
热点文章
更多
辅导 comm2000 creating socia...
2026-01-08
讲解 isen1000 – introductio...
2026-01-08
讲解 cme213 radix sort讲解 c...
2026-01-08
辅导 csc370 database讲解 迭代
2026-01-08
讲解 ca2401 a list of colleg...
2026-01-08
讲解 nfe2140 midi scale play...
2026-01-08
讲解 ca2401 the universal li...
2026-01-08
辅导 engg7302 advanced compu...
2026-01-08
辅导 comp331/557 – class te...
2026-01-08
讲解 soft2412 comp9412 exam辅...
2026-01-08
讲解 scenario # 1 honesty讲解...
2026-01-08
讲解 002499 accounting infor...
2026-01-08
讲解 comp9313 2021t3 project...
2026-01-08
讲解 stat1201 analysis of sc...
2026-01-08
辅导 stat5611: statistical m...
2026-01-08
辅导 mth2010-mth2015 - multi...
2026-01-08
辅导 eeet2387 switched mode ...
2026-01-08
讲解 an online payment servi...
2026-01-08
讲解 textfilter辅导 r语言
2026-01-08
讲解 rutgers ece 434 linux o...
2026-01-08
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 99515681 微信:codinghelp
© 2024
www.7daixie.com
站长地图
程序辅导网!