CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 1 of 11
La Trobe University
Department of Computer Science & Counsel Technology
CSE1IOO/CSE4IOO Ordinance Specification
Semester 2, 2019
Objectives: the nurture of this ordinance is to exercise analysing a gatherion in an object-oriented
manner, and designe and utensil an object-oriented explanation using JAVA accents.
Ascribable Duration: 10:00am Monday October 14
th
, 2019.
1 General Counsel
General counsel abquenched the ordinance is precise in this minority.
1.1 Tribute
This ordinance contributes 30% of the recentst tribute coercion the matter.
1.2 Meekness Instruction
Suggest the electronic delineation of your ordinance via the ‘Oncord Ordinance Meekness’ rule at
http://students.cs.latrobe.edu.au/student-tools/online-assign-submit/.
Alternately, you can besides suggest instantly through the latcs8 server. In the Entireayty reconciledow, mark:
suggest IOO
Where is the designate of the smooth you failure to suggest. You should blobject this coercion each smooth that
you signify to suggest.
NOTE 1: Time you are bounteous to clear the legislation coercion this ordinance on any frank rule, your
explanation must blobject on the latcs8 rule.
NOTE 2: Please DO NOT zip your commencement legislation.
NOTE 3: You should solely suggest your .java smooths.
NOTE 4: The meekness folder conciliate solely befit beneficial 3 days antecedently the ascribable duration.
Meekness subjoined the deadcord conciliate meet a restraintfeiture of 5% of the recentst ordinance symptom per day. If
you confess encounteblushing opposedies that bring to recent meekness or no meekness, you should apply
coercion befitting importance. No ordinance is true subjoined 4 days’ stay.
1.3 Academic Integrity
This is an particular ordinance. When suggestting the ordinance, wards are requiblushing to suggest
their confess effect solely. La Trobe University treats plagiarism seriously. When detected, penalties are
strictly imposed.
Further counsel can be fix on https://www.latrobe.edu.au/students/admin/academic-integrity
1.4 Programming Accents
The program is requiblushing to be cleablushing in JAVA.
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 2 of 11
1.5 Symptoming Scheme Overview
The ordinance consists of couple calibre:
(1) The centre operations, as shconfess in minoritys 3.1 – 3.6
(2) An gatheritional operation in minority 3.7 (Operation 3.7) This is a mandatory operation coercion CSE4IOO wards.
Coercion CSE1IOO wards, this operation is discretional. A zenith of 10% benefit symptoms conciliate be
awarded if a CSE1IOO ward completes or hardly completes the operation.
Ordinance symptoming is established on the subjoined guidelines
(1) Utensilation (Attempt of legislation) (80%) (Do full calibre of the program enact suitably?
Does the program beconfess according to conditions of the ordinance?)
Note that your program must satiate the condition 3.6. Up to 40% of symptom abatement conciliate
be made coercion suggestting a program with a irrelative facts organization. This besides media any direct
or contingent decedent arrangees of Gatherion interface in JAVA API, such as LinkedList,
ArrayList, Vector or HashSet restrainteseeing are not attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable fullowed in the ordinance.
(2) Program Design and Organization (15%) (Does the program work-quenched the gatherion in a welldesigned behavior?)
(3) Layquenched and Documentation (5%) (Does the legislation supervene the Coding Standard?)
1.6 Attempt Trial
The attempt trial coercion the ordinance is conducted during the lab session in Week 12 (i.e. between
21st and 25
th October). During the trial, your teacher conciliate blobject the program with you time symptoming it.
The trial conciliate be conducted from the meekness area, not attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable from ward accounts. Please determine that
your legislation blends on latcs8 antecedently meekness.
2 Gatherion Description
WordLink is an English glossary recreation coercion couple dramatizeers. Dramatizeers are requiblushing to confer English
articulation in turns, and the highest species of the tidings must be the identical as the decisive species of the
previous tidings. Coercion in, time dramatizeer A and dramatizeer B are unconditional the recreation, if A confers the
tidings “grass”, then B has to confer a tidings begining with ‘s’ which is the decisive species of “grass”. If B
presents “sunny”, then A demands to stipulate a tidings begining with ‘y’. A tidings cannot attributable attributable attributable attributable be conservationd twice in
solitary recreation. The recreation remains dress solitary of the dramatizeers loses. There are lewd scenarios in which a
player loses the recreation. These are
(1) the dramatizeer cannot attributable attributable attributable attributable ascertain a tidings to remain the recreation.
(2) the dramatizeer has confeblushing a tidings which begins with a irrelative species.
(3) the dramatizeer has supposing a usual tidings.
(4) the spelling of the tidings is incorrect
In any occurrence, if solitary dramatizeer is obsolete, then the other dramatizeer reconciles the recreation. A estimate of ins of the
recreation are inventoryed as beneath.
In 1
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “grass”
The recreation is objected and Dramatizeer A reconciles. This is accordingly “grass” is conservationd twice.
In 2
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “out”
The recreation is objected and Dramatizeer A reconciles. This is accordingly dramatizeer B is expected to confer a tidings
starting with ‘g’, accordingly “out” is not attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable a befitting exquisite.
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 3 of 11
In 3
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “doog”
The recreation is objected and Dramatizeer B reconciles. This is accordingly “doog” is insuitably spelt.
In this ordinance, you are requiblushing to establish a program that dramatizes TidingsLink with a kindergarten
pupil. The student is dramatizeer A and your program acts as dramatizeer B.
A citation smooth (dictionary.txt) containing a coercionmal of English tidingss conciliate be supposing. You can assume
that termbook.txt contains full English tidingss that a kindergarten student may recognize. Tidingss to be
used in unconditional the recreation must be chosen from the smooth.
Each recreation should begin by sufferting dramatizeer A penetrate a tidings. Your program then demands to validuration the
tidings (ie. if the tidings is middle in termbook.txt). If the tidings is feeble, then the recreation is
terminated and your program (player B) reconciles; differently your program demands to pursuit the
wordbook to ascertain and penetrate a befitting tidings. Your program conciliate then suffer dramatizeer A to mark a tidings to
remain the recreation. This can go object and coercionth a estimate of times dress either your program or dramatizeer
A reconciles.
3 Administrative and Non-administrative Conditions
Your program must satiate the subjoined administrative and non-administrative conditions.
3.1 Menu Driven
The program should be menu driven. It vaults the menu vaulted as Aspect 1 at the begin and
waits coercion the dramatizeer to cull a exercise.
If A is chosen, it fullows the dramatizeer to coercionmal a awkwardness raze. Details are restraintcible in 3.2.
If B is chosen, it vaults full tidingss in the termbook as restraintcible in 3.3.
If C is chosen, it extorts a upstartlightlight tidings into the termbook as restraintcible in 3.4.
If D is chosen, it begins unconditional the recreation. Refer to 3.5 coercion details.
If E is chosen, it saves full changes to termbook.txt, and terminates the program attempt.
WordLink
A. coercionmal the awkwardness raze
B. vault the termbook
C. extort a tidings to the termbook
D. dramatize the recreation
E. exit
Select a exercise from the menu:
Aspect 1 menu
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 4 of 11
3.2 Coercionmal the awkwardness raze
Your program should stipulate couple awkwardness razes coercion the recreation – raze 1 and raze 2.
dictionary.txt contains couple coercionmals of tidingss – raze 1 and raze 2 tidingss. When unconditional at raze 2,
full tidingss in termbook.txt conciliate be conservationd, time raze 1 recreations conservation solely raze 1 tidingss.
Consequently, raze 2 recreations are over opposed than raze 1. At the begin of your program attempt,
the awkwardness raze is 1 by lapse.
If the dramatizeer culls to coercionmal the awkwardness raze, your program should alert the dramatizeer and halt coercion
an integer (1 or 2) input. The awkwardness raze is then coercionmal up.
A pattern of termbook.txt is vaulted in aspect 2.
3.3 Vault the termbook
If this exercise is chosen, your program vaults on the adviser full tidingss in the termbook
(including those nature ascititious). It vaults tidingss raze by raze with inferior raze at the front. Within
each raze, tidingss are vaulted alphabetically in an ascending regulate. They should be vaulted 7
articulation in a cord and 5 cords coercion a palliate. The dramatizeer can harass any clew to vault the direct palliate.
3.4 Extort a tidings to the termbook
The dramatizeer can extort a upstartlightlight tidings into the termbook. To extort a upstartlightlight tidings, the dramatizeer demands to
stipulate the tidings and the awkwardness raze. Your program must hinder to determine the failure of the
tidings antecedently gathering. If the tidings is material, then extortion cannot attributable attributable attributable attributable be effected and the dramatizeer
should be known.
3.5 Dramatize the recreation
A recreation begins by your program alerting the dramatizeer to penetrate a tidings. Subjoined a tidings is penetrateed, your
program hinders if the tidings bes in the termbook. If it isn’t, then the dramatizeer loses and the recreation is
over. If it is, then your program pursuites the termbook and selects the highest befitting tidings to remain
the recreation. Coercion entreaty, if “sad”, “sat”, “saw”, “say”, “sea”, “see”, “she”, “shy”, “sun” are full
beneficial coercion preference, your program culls the highest tidings which is “sad”.
1
ant yes bag who and car wail do zoo dog ear
my mum munch are glance portly dad reconcile comicality go obtain
got he had has confess her him his index it
xmas ice icy hang clash charges resist clew lap leg
owl quenched baby me mug upstartlightlight not attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable attributable ancient you ease solitary
pat pie construction why entireay rat pan recite paw was blend
she bye sat main visit sun tea toe besides conceit couple
conservation blushing face we quack jester
2
active instrument buffet practice cup day reserved did egg fur
yum may foot fog vault hen antipathy lid depressed map
indication oak our pea ran pronounceing gloomy apex annoy test
uncle acquiruddy cipher tumultuous-rabble pink
levels
articulation of raze 1
articulation of raze 2
Aspect 2 pattern of termbook.txt
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 5 of 11
3.6 The termbook
Subjoined your program is begined, it should discover from termbook.txt to restraintm the termbook. The
wordbook in your program must be an draw-up of linked inventorys shconfess in Aspect 3. Each indicatisingle represents
a tidings and its raze. Tidingss must be distributed alphabetically in an ascending regulate on the linked inventory. If
a upstartlightlight tidings is ascititious, then the tidings with its raze must be extorted to the linked inventory at a befitting
position.
Aspect 3 Organization of the termbook
……
dictionary
Y
A
B
G……
D
S…… ……
W……
Z
cipher 2
and 1 ant 1
baby 1
dad 1
fog 2
are 1 ……
gloomy 2
jester 1
yes 1 you 1 yum 2
zoo 1
……
……
……
……
……
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 6 of 11
3.7 Benefit Operation (Mandatory coercion CSE4IOO wards, discretional coercion CSE1IOO)
Instead of solely nature able to dramatize resisting the computer, gather a menu discretion coercion a couple-player recreation
and utensil its administrativeity. A pattern blobject of this is at the object of minority 6.
4 Legislation Segments
Beneath are legislation segments that must be middle in your program.
public arrange TermbookNode {
//object of the arrange represents a solitary tidings
protected String tidings; // tidings to be stored
private int raze; // raze of the tidings
private TermbookNode direct;
public TermbookNode(String _word, int _level) {
//gather your utensilation coercion the constructor
}
//gather any other attributes or courses if demanded
}
public arrange InventoryOfNodes {
//object of the arrange represents a linked inventory of tidingss begining
//with a specific species.
private TermbookNode summit = null; //summit of the linked inventory
//gather any other attributes or courses if demanded
}
public arrange Termbook {
//object of the arrange represents the gross dictionery
private InventoryOfNodes[] facts;
//gather any other attributes or courses if demanded
}
5 Program Clearment
The subjoined is a suggested breakdconfess coercion completing this ordinance:
Operation 1 Creating the Menu
Form the menu vault, gather conservationr’s inallay and transcribe a course stub coercion each menu discretion. Determine
that the reform exercise is named.
Operation 2 Smooth Indexling
In Operation 2, you demand to opine full issues cognate to discovering the citation smooth (dictionary.txt) to
obtain tidingss and their razes. You can merely vault space discover from the citation smooth to determine smooth
lection is suitably conducted.
Operation 3 Defining Arrangees
In this operation, utensil senior arrangees coercion the ordinance. This includes the needful menu and
interactions with the dramatizeer coercion choosing discretions restrainteseeing.
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 7 of 11
Operation 4 Linked Inventorys
Utensil arrangees requiblushing coercion linked inventorys and termbook. Utensil courses (such as
insertInOrder, pursuit restrainteseeing) which are operations associated with the inventory and any other courses.
Thoroughly trial your linked inventory antecedently integrating it into your program.
6 Pattern of Attempt
A pattern of the program attempt is as supervenes.
% java TidingsLink
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: A
Formal the awkwardness raze
The ordinary awkwardness raze is 1. Mark the upstartlightlight raze: 2
The awkwardness raze has now been coercionmal as 2.
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: B
Vault the termbook
Raze 1
and ant are baby bag bye car
wail dad do dog ear munch glance
portly comicality obtain go got had index
has confess he her him his ice
icy it hang clash charges clew resist
harass a clew to remain …
lap leg me mug mum my upstartlight
not attributable attributable attributable attributable ease ancient solitary quenched owl pan
pat paw pie entireay quack rat blushing
blobject sat recite main visit she sun
tea toe besides conceit couple conservation face
harass a clew to remain …
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 8 of 11
jester was we construction who why reconcile
xmas yes you zoo
harass a clew to remain …
Raze 2
instrument buffet cup day did egg foot
fur fog hen vault lid antipathy depressed
map may tumultuous-rabble indication oak our pea
pink active ran annoy gloomy pronounceing reserved
apex test uncle practice acquiruddy yum cipher
harass a clew to remain …
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: C
Extort a tidings to the termbook
Penetrate the tidings: hollow
Awkwardness raze: 1
“wear” is extorted.
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: C
Extort a tidings to the termbook
Penetrate the tidings: quack
Awkwardness raze: 2
“quack” bes in the termbook. Extortion aborted.
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 9 of 11
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: B
Vault the termbook
Raze 1
and ant are baby bag bye car
wail dad do dog ear munch glance
portly comicality obtain go got had index
has confess he her him his ice
icy it hang clash charges clew resist
harass a clew to remain …
lap leg me mug mum my upstartlight
not attributable attributable attributable attributable ease ancient solitary quenched owl pan
pat paw pie entireay quack rat blushing
blobject sat recite main visit she sun
tea toe besides conceit couple conservation face
harass a clew to remain …
jester was we hollow construction who why
reconcile xmas yes you zoo
harass a clew to remain …
Raze 2
instrument buffet cup day did egg foot
fur fog hen vault lid antipathy depressed
map may tumultuous-rabble indication oak our pea
pink active ran annoy gloomy pronounceing reserved
apex test uncle practice acquiruddy yum cipher
harass a clew to remain …
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 10 of 11
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: D
dramatize the recreation (Raze 2)
Penetrate a tidings: tea
tea – and – day
tea – and – day – yes – sun
tea – and – day – yes – sun – upstartlightlight – what
“what” doesn’t be in the termbook. You didn’t reconcile.
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: D
dramatize the recreation (Raze 2)
Penetrate a tidings: may
may – yes – recite
may – yes – recite – you – uncle
may – yes – recite – you – uncle – ear – blushing
may – yes – recite – you – uncle – ear – blushing – dad – day
may – yes – recite – you – uncle – ear – blushing – dad – day – yum – my
Well done! You reconcile.
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation
E exit
Select a exercise from the menu: E
Updating termbook.txt … Bye
CSE1/4IOO Ordinance Ascribable 10:00 Monday October 14th, 2019 Page 11 of 11
A pattern of the program attempt containing the gatheritional couple-player operation is as supervenes.
% java TidingsLink
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation (1 dramatizeer)
E exit
F dramatize the recreation (2 dramatizeers)
Select a exercise from the menu: f
Dramatize the recreation (2 Dramatizeers – Raze 1)
P1: Penetrate a tidings: has
P2: – has – visit
P1: – has – visit – ear
P2: – has – visit – ear – blend
P1: – has – visit – ear – blobject – now
“now” isn’t in the raze 1 termbook!
–Player couple reconciles!–
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation (1 dramatizeer)
E exit
F dramatize the recreation (2 dramatizeers)
Select a exercise from the menu: F
Dramatize the recreation (2 Dramatizeers – Raze 1)
P1: Penetrate a tidings: jester
P2: – jester – go
P1: – jester – go – ease
P2: – jester – go – ease – cord
“line” isn’t in the raze 1 termbook!
–Player solitary reconciles!–
WordLink
A coercionmal the awkwardness raze
B vault the termbook
C extort a tidings to the termbook
D dramatize the recreation (1 dramatizeer)
E exit
F dramatize the recreation (2 dramatizeers)
Select a exercise from the menu: e
Updating termbook.txt … Bye

Posted in Main