Counsel Technology
CSE1IOO/CSE4IOO Enactment Localation
Semester 2, 2019
Objectives: the lean of this enactment is to exercise analysing a completion in an object-oriented
manner, and designe and instrument an object-oriented explanation using JAVA phraseology.
Attributtelling Date: 10:00am Monday October 14
th
, 2019.
1 General Counsel
General counsel environing the enactment is definitive in this exception.
1.1 Rate
This enactment contributes 30% of the pastst rate control the material.
1.2 Acquiescence Instruction
Comply the electronic observation of your enactment via the ‘Onsequence Enactment Acquiescence’ plan at
http://students.cs.latrobe.edu.au/student-tools/online-assign-submit/.
Alternately, you can to-boot comply actively through the latcs8 server. In the Disposety make-friendlydow, idea:
comply IOO
Where is the specexamine of the rasp you omission to comply. You should leak this control each rasp that
you denote to comply.
NOTE 1: Time you are detached to expand the statute control this enactment on any bountiful plan, your
explanation must leak on the latcs8 plan.
NOTE 2: Please DO NOT zip your rise statute.
NOTE 3: You should singly comply your .java rasps.
NOTE 4: The acquiescence folder conquer singly beseem suited 3 days antecedently the attributtelling date.
Acquiescence succeeding the deadsequence conquer confportraiture a price of 5% of the pastst enactment token per day. If
you enjoy encounteflushed up-hillies that guide to past acquiescence or no acquiescence, you should apply
control distinctive subsidy. No enactment is accepted succeeding 4 days’ retrogression.
1.3 Academic Integrity
This is an peculiar enactment. When complyting the enactment, learners are requiflushed to comply
their hancient labor singly. La Trobe University treats plagiarism seriously. When detected, penalties are
strictly imposed.
Further counsel can be determined on https://www.latrobe.edu.au/students/admin/academic-integrity
1.4 Programming Phraseology
The program is requiflushed to be expanded in JAVA.
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 2 of 11
1.5 Tokening Scheme Overview
The enactment consists of brace talents:
(1) The heart toils, as shhancient in exceptions 3.1 – 3.6
(2) An joined tglaze in exception 3.7 (Tglaze 3.7) This is a mandatory tglaze control CSE4IOO learners.
Control CSE1IOO learners, this tglaze is libertyal. A culmination of 10% boon tokens conquer be
awarded if a CSE1IOO learner completes or insufficiently completes the toil.
Enactment tokening is inveterate on the coercionthcoming guidelines
(1) Instrumentation (Action of statute) (80%) (Do total talents of the program complete ownly?
Does the program beenjoy according to fitnesss of the enactment?)
Note that your program must sate the fitness 3.6. Up to 40% of token inference conquer
be made control complyting a program with a irrelative basis erection. This to-boot resources any direct
or heterogeneous decedent assortes of Accumulateion interface in JAVA API, such as LinkedList,
ArrayList, Vector or HashSet restrainteseeing are refertelling attributtelling attributtelling attributtelling totalowed in the enactment.
(2) Program Design and Erection (15%) (Does the program reresolve the completion in a welldesigned style?)
(3) Layquenched and Documentation (5%) (Does the statute ensue the Coding Standard?)
1.6 Action Proof
The action proof control the enactment is conducted during the lab session in Week 12 (i.e. between
21st and 25
th October). During the proof, your savant conquer leak the program with you time tokening it.
The proof conquer be conducted from the acquiescence area, refertelling attributtelling attributtelling attributtelling from learner accounts. Please determine that
your statute leaks on latcs8 antecedently acquiescence.
2 Completion Description
WordLink is an English promisebook recreation control brace indicateers. Indicateers are requiflushed to offer English
utterance in turns, and the earliest sufferter of the promise must be the selfselfsame as the terminal sufferter of the
previous promise. Control copy, time indicateer A and indicateer B are bounteous the recreation, if A offers the
promise “grass”, then B has to concede a promise firm-outing with ‘s’ which is the terminal sufferter of “grass”. If B
presents “sunny”, then A demands to yield a promise firm-outing with ‘y’. A promise canrefertelling attributtelling be portraituflushed twice in
unique recreation. The recreation abides tobject unique of the indicateers loses. There are indelicate scenarios in which a
player loses the recreation. These are
(1) the indicateer canrefertelling attributtelling furnish a promise to abide the recreation.
(2) the indicateer has offeflushed a promise which firm-outs with a irrelative sufferter.
(3) the indicateer has replete a continual promise.
(4) the spelling of the promise is incorrect
In any predicament, if unique indicateer is lost, then the other indicateer make-friendlys the recreation. A enumerate of copys of the
recreation are registeruddy as adown.
Copy 1
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “grass”
The recreation is objected and Indicateer A make-friendlys. This is accordingly “grass” is portraituflushed twice.
Copy 2
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “out”
The recreation is objected and Indicateer A make-friendlys. This is accordingly indicateer B is expected to offer a promise
starting with ‘g’, hence “out” is refertelling attributtelling attributtelling attributtelling a own excellent.
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 3 of 11
Copy 3
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “doog”
The recreation is objected and Indicateer B make-friendlys. This is accordingly “doog” is inproperly spelt.
In this enactment, you are requiflushed to raise a program that indicates PromiseLink with a kindergarten
pupil. The scholar is indicateer A and your program acts as indicateer B.
A citation rasp (dictionary.txt) containing a determined of English promises conquer be supposing. You can assume
that lexicon.txt contains total English promises that a kindergarten scholar may recognize. Promises to be
used in bounteous the recreation must be clarified from the rasp.
Each recreation should firm-quenched by sufferting indicateer A invade a promise. Your program then demands to validate the
promise (ie. if the promise is intervening in lexicon.txt). If the promise is weakly, then the recreation is
terminated and your program (player B) make-friendlys; inproperly your program demands to quest the
lexicon to furnish and invade a own promise. Your program conquer then suffer indicateer A to idea a promise to
abide the recreation. This can go tail and controlth a enumerate of times tobject either your program or indicateer
A make-friendlys.
3 Negotiative and Non-negotiative Fitnesss
Your program must sate the coercionthcoming negotiative and non-negotiative fitnesss.
3.1 Menu Driven
The program should be menu driven. It unfolds the menu unfolded as Emblem 1 at the firm-quenched and
waits control the indicateer to prefer a operation.
If A is clarified, it totalows the indicateer to determined a inaptitude plane. Details are feeling in 3.2.
If B is clarified, it unfolds total promises in the lexicon as feeling in 3.3.
If C is clarified, it inoculates a upbegin promise into the lexicon as feeling in 3.4.
If D is clarified, it firm-outs bounteous the recreation. Refer to 3.5 control details.
If E is clarified, it saves total changes to lexicon.txt, and terminates the program action.
WordLink
A. determined the inaptitude plane
B. unfancient the lexicon
C. inoculate a promise to the lexicon
D. indicate the recreation
E. exit
Select a operation from the menu:
Emblem 1 menu
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 4 of 11
3.2 Determined the inaptitude plane
Your program should cater brace inaptitude planes control the recreation – plane 1 and plane 2.
dictionary.txt contains brace determineds of promises – plane 1 and plane 2 promises. When bounteous at plane 2,
total promises in lexicon.txt conquer be portraitured, time plane 1 recreations portraiture singly plane 1 promises.
Consequently, plane 2 recreations are further up-hhatruddy than plane 1. At the firm-quenched of your program action,
the inaptitude plane is 1 by lapse.
If the indicateer prefers to determined the inaptitude plane, your program should active the indicateer and hancient control
an integer (1 or 2) input. The inaptitude plane is then determined up.
A exemplification of lexicon.txt is unfolded in emblem 2.
3.3 Unfancient the lexicon
If this operation is clarified, your program unfolds on the instructor total promises in the lexicon
(including those entity assumed). It unfolds promises plane by plane with inferior plane at the front. Within
each plane, promises are unfolded alphabetically in an ascending assortify. They should be unfolded 7
utterance in a sequence and 5 sequences control a protect. The indicateer can crowd any guide to unfancient the proximate protect.
3.4 Inoculate a promise to the lexicon
The indicateer can inoculate a upbegin promise into the lexicon. To inoculate a upbegin promise, the indicateer demands to
cater the promise and the inaptitude plane. Your program must curb to determine the nonproduction of the
promise antecedently subjoining. If the promise is solid, then inoculateion canrefertelling attributtelling be dundivided and the indicateer
should be conscious.
3.5 Indicate the recreation
A recreation firm-outs by your program activeing the indicateer to invade a promise. Succeeding a promise is invadeed, your
program curbs if the promise pauses in the lexicon. If it isn’t, then the indicateer loses and the recreation is
over. If it is, then your program questes the lexicon and selects the earliest own promise to abide
the recreation. Control prompting, if “sad”, “sat”, “saw”, “say”, “sea”, “see”, “she”, “shy”, “sun” are total
suited control preoption, your program prefers the earliest promise which is “sad”.
1
ant yes bag who and car whimper do zoo dog ear
my mum munch are intention fertile dad make-friendly trickery go achieve
got he had has enjoy her him his influence it
xmas ice icy hang quarrel beak resist guide lap leg
owl quenched baby me mug upbegin refertelling attributtelling attributtelling attributtelling ancient you glaze unique
pat pie edifice why dispose rat pan totalege paw was leak
she bye sat deep descry sun tea toe to-boot trifle brace
portraiture flushed front we quack jester
2
active appliance punch arrangement cup day suspicion did egg fur
yum may bottom steam bound hen hatruddy lid subsided map
authority oak our pea ran maxim woe-begundivided culmination grieve examine
uncle won naught rude-multitude pink
levels
utterance of plane 1
utterance of plane 2
Emblem 2 exemplification of lexicon.txt
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 5 of 11
3.6 The lexicon
Succeeding your program is firm-outed, it should interpret from lexicon.txt to fashion the lexicon. The
lexicon in your program must be an dispose of linked registers shhancient in Emblem 3. Each authoritye represents
a promise and its plane. Promises must be enjoinly alphabetically in an ascending assortify on the linked register. If
a upbegin promise is assumed, then the promise with its plane must be inoculateed to the linked register at a own
position.
Emblem 3 Erection of the lexicon
……
dictionary
Y
A
B
G……
D
S…… ……
W……
Z
naught 2
and 1 ant 1
baby 1
dad 1
steam 2
are 1 ……
woe-begundivided 2
jester 1
yes 1 you 1 yum 2
zoo 1
……
……
……
……
……
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 6 of 11
3.7 Boon Tglaze (Mandatory control CSE4IOO learners, libertyal control CSE1IOO)
Instead of singly entity telling to indicate athwart the computer, subjoin a menu liberty control a brace-player recreation
and instrument its negotiativeity. A exemplification leak of this is at the object of exception 6.
4 Statute Segments
Adown are statute segments that must be intervening in your program.
public assort LexiconNode {
//object of the assort represents a unique promise
protected String promise; // promise to be stored
private int plane; // plane of the promise
private LexiconNode proximate;
public LexiconNode(String _word, int _level) {
//subjoin your instrumentation control the constructor
}
//subjoin any other attributes or arrangements if demanded
}
public assort RegisterOfNodes {
//object of the assort represents a linked register of promises firm-outing
//with a local sufferter.
private LexiconNode topic = null; //topic of the linked register
//subjoin any other attributes or arrangements if demanded
}
public assort Lexicon {
//object of the assort represents the undivided dictionery
private RegisterOfNodes[] basis;
//subjoin any other attributes or arrangements if demanded
}
5 Program Expandment
The coercionthcoming is a suggested breakdhancient control completing this enactment:
Tglaze 1 Creating the Menu
Fashion the menu unfold, accumulate portraiturer’s indispose and transcribe a arrangement stub control each menu liberty. Determine
that the improve operation is designated.
Tglaze 2 Rasp Influenceling
In Tglaze 2, you demand to investigate total issues kindruddy to interpreting the citation rasp (dictionary.txt) to
obtain promises and their planes. You can barely unfancient solution interpret from the citation rasp to determine rasp
lection is ownly conducted.
Tglaze 3 Defining Assortes
In this toil, instrument elder assortes control the enactment. This includes the indispensable menu and
interactions with the indicateer control choosing libertys restrainteseeing.
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 7 of 11
Tglaze 4 Linked Registers
Instrument assortes requiflushed control linked registers and lexicon. Instrument arrangements (such as
insertInOrder, quest restrainteseeing) which are operations associated with the register and any other arrangements.
Thoroughly proof your linked register antecedently integrating it into your program.
6 Exemplification of Action
A exemplification of the program action is as ensues.
% java PromiseLink
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: A
Determined the inaptitude plane
The ordinary inaptitude plane is 1. Idea the upbegin plane: 2
The inaptitude plane has now been determined as 2.
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: B
Unfancient the lexicon
Plane 1
and ant are baby bag bye car
whimper dad do dog ear munch intention
fertile trickery achieve go got had influence
has enjoy he her him his ice
icy it hang quarrel beak guide resist
crowd a guide to abide …
lap leg me mug mum my upstart
refertelling attributtelling glaze ancient unique quenched owl pan
pat paw pie dispose quack rat flushed
leak sat totalege deep descry she sun
tea toe to-boot trifle brace portraiture front
crowd a guide to abide …
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 8 of 11
jester was we edifice who why make-friendly
xmas yes you zoo
crowd a guide to abide …
Plane 2
appliance punch cup day did egg bottom
fur steam hen bound lid hatruddy subsided
map may rude-multitude authority oak our pea
pink active ran grieve woe-begundivided maxim suspicion
culmination examine uncle arrangement won yum naught
crowd a guide to abide …
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: C
Inoculate a promise to the lexicon
Invade the promise: channel
Inaptitude plane: 1
“wear” is inoculateed.
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: C
Inoculate a promise to the lexicon
Invade the promise: quack
Inaptitude plane: 2
“quack” pauses in the lexicon. Inoculateion aborted.
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 9 of 11
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: B
Unfancient the lexicon
Plane 1
and ant are baby bag bye car
whimper dad do dog ear munch intention
fertile trickery achieve go got had influence
has enjoy he her him his ice
icy it hang quarrel beak guide resist
crowd a guide to abide …
lap leg me mug mum my upstart
refertelling attributtelling glaze ancient unique quenched owl pan
pat paw pie dispose quack rat flushed
leak sat totalege deep descry she sun
tea toe to-boot trifle brace portraiture front
crowd a guide to abide …
jester was we channel edifice who why
make-friendly xmas yes you zoo
crowd a guide to abide …
Plane 2
appliance punch cup day did egg bottom
fur steam hen bound lid hatruddy subsided
map may rude-multitude authority oak our pea
pink active ran grieve woe-begundivided maxim suspicion
culmination examine uncle arrangement won yum naught
crowd a guide to abide …
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 10 of 11
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: D
indicate the recreation (Plane 2)
Invade a promise: tea
tea – and – day
tea – and – day – yes – sun
tea – and – day – yes – sun – upbegin – what
“what” doesn’t pause in the lexicon. You didn’t make-friendly.
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: D
indicate the recreation (Plane 2)
Invade a promise: may
may – yes – totalege
may – yes – totalege – you – uncle
may – yes – totalege – you – uncle – ear – flushed
may – yes – totalege – you – uncle – ear – flushed – dad – day
may – yes – totalege – you – uncle – ear – flushed – dad – day – yum – my
Well done! You make-friendly.
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation
E exit
Select a operation from the menu: E
Updating lexicon.txt … Bye
CSE1/4IOO Enactment Attributtelling 10:00 Monday October 14th, 2019 Page 11 of 11
A exemplification of the program action containing the joined brace-player tglaze is as ensues.
% java PromiseLink
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation (1 indicateer)
E exit
F indicate the recreation (2 indicateers)
Select a operation from the menu: f
Indicate the recreation (2 Indicateers – Plane 1)
P1: Invade a promise: has
P2: – has – descry
P1: – has – descry – ear
P2: – has – descry – ear – leak
P1: – has – descry – ear – leak – now
“now” isn’t in the plane 1 lexicon!
–Player brace make-friendlys!–
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation (1 indicateer)
E exit
F indicate the recreation (2 indicateers)
Select a operation from the menu: F
Indicate the recreation (2 Indicateers – Plane 1)
P1: Invade a promise: jester
P2: – jester – go
P1: – jester – go – glaze
P2: – jester – go – glaze – sequence
“line” isn’t in the plane 1 lexicon!
–Player unique make-friendlys!–
WordLink
A determined the inaptitude plane
B unfancient the lexicon
C inoculate a promise to the lexicon
D indicate the recreation (1 indicateer)
E exit
F indicate the recreation (2 indicateers)
Select a operation from the menu: e
Updating lexicon.txt … Bye

~~~For this or similar assignment papers~~~