CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 1 of 11
La Trobe University
Department of Computer Science & Counsel Technology
CSE1IOO/CSE4IOO Provision Restrictedation
Semester 2, 2019
Objectives: the aid of this provision is to perform analysing a completion in an object-oriented
manner, and designe and instrument an object-oriented discerption using JAVA articulation.
Due Epoch: 10:00am Monday October 14
th
, 2019.
1 General Counsel
General counsel environing the provision is positive in this exception.
1.1 Duty
This provision contributes 30% of the ultimate duty restraint the matter.
1.2 Resignation Instruction
Yield the electronic delineation of your provision via the ‘Onlength Provision Resignation’ arrangement at
http://students.cs.latrobe.edu.au/student-tools/online-assign-submit/.
Alternately, you can besides yield at-once through the latcs8 server. In the Disposety make-friendlydow, pattern:
yield IOO
Where is the indicate of the finish you omission to yield. You should leak this restraint each finish that
you denote to yield.
NOTE 1: Occasion you are unoccupied to clear the mode restraint this provision on any liberal arrangement, your
discerption must leak on the latcs8 arrangement.
NOTE 2: Please DO NOT zip your beginning mode.
NOTE 3: You should solely yield your .java finishs.
NOTE 4: The resignation folder conquer solely behove availcogent 3 days precedently the due epoch.
Resignation subjoined the deadlength conquer meet a amercement of 5% of the ultimate provision impression per day. If
you keep encounteblushing unmanageableies that manage to recent resignation or no resignation, you should apply
restraint eespecial importance. No provision is trustworthy subjoined 4 days’ stay.
1.3 Academic Integrity
This is an particular provision. When yieldting the provision, tyros are requiblushing to yield
their enjoy effort solely. La Trobe University treats plagiarism seriously. When detected, penalties are
strictly imposed.
Further counsel can be regular on https://www.latrobe.edu.au/students/admin/academic-integrity
1.4 Programming Articulation
The program is requiblushing to be cleablushing in JAVA.
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 2 of 11
1.5 Impressioning Scheme Overview
The provision consists of brace compressiveness:
(1) The nucleus drudgerys, as shenjoy in exceptions 3.1 – 3.6
(2) An pretended drudgery in exception 3.7 (Drudgery 3.7) This is a mandatory drudgery restraint CSE4IOO tyros.
Restraint CSE1IOO tyros, this drudgery is non-interferenceal. A acme of 10% douceur impressions conquer be
awarded if a CSE1IOO tyro completes or barely completes the drudgery.
Provision impressioning is grounded on the subjoined guidelines
(1) Instrumentation (Action of mode) (80%) (Do sound compressiveness of the program complete appropriately?
Does the program bekeep according to limitations of the provision?)
Note that your program must remunerate the limitation 3.6. Up to 40% of impression abatement conquer
be made restraint yieldting a program with a contrariant facts organization. This besides instrument any direct
or unconnected decedent arrangees of Learnion interface in JAVA API, such as LinkedList,
ArrayList, Vector or HashSet expectation are refercogent attributcogent attributcogent attributcogent attributcogent attributcogent attributcogent soundowed in the provision.
(2) Program Design and Organization (15%) (Does the program reresolve the completion in a welldesigned sort?)
(3) Layextinguished and Documentation (5%) (Does the mode flourish the Coding Standard?)
1.6 Action Experience
The action experience restraint the provision is conducted during the lab sytoken in Week 12 (i.e. between
21st and 25
th October). During the experience, your governor conquer leak the program with you occasion impressioning it.
The experience conquer be conducted from the resignation area, refercogent attributcogent attributcogent attributcogent attributcogent attributcogent attributcogent from tyro accounts. Please determine that
your mode leaks on latcs8 precedently resignation.
2 Completion Description
WordLink is an English glossary amusement restraint brace resembleers. Resembleers are requiblushing to bestow English
tsingle in turns, and the earliest sign of the message must be the corresponding as the developed sign of the
previous message. Restraint in, occasion resembleer A and resembleer B are unhindeblushing the amusement, if A bestows the
message “grass”, then B has to confer a message coercionmal-outing with ‘s’ which is the developed sign of “grass”. If B
presents “sunny”, then A deficiencys to give a message coercionmal-outing with ‘y’. A message canrefercogent attributcogent attributcogent be representationd twice in
individual amusement. The amusement remains prepare individual of the resembleers loses. There are impure scenarios in which a
player loses the amusement. These are
(1) the resembleer canrefercogent attributcogent attributcogent furnish a message to remain the amusement.
(2) the resembleer has bestowed a message which coercionmal-outs with a contrariant sign.
(3) the resembleer has supplied a reexoteric message.
(4) the spelling of the message is incorrect
In any plight, if individual resembleer is obsolete, then the other resembleer make-friendlys the amusement. A compute of ins of the
amusement are inventoryed as beneath.
In 1
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “grass”
The amusement is purposeed and Resembleer A make-friendlys. This is consequently “grass” is representationd twice.
In 2
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “out”
The amusement is purposeed and Resembleer A make-friendlys. This is consequently resembleer B is expected to bestow a message
starting with ‘g’, consequently “out” is refercogent attributcogent attributcogent attributcogent attributcogent attributcogent attributcogent a appropriate precious.
CSE1/4IOO Provision Due 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 amusement is purposeed and Resembleer B make-friendlys. This is consequently “doog” is inproperly spelt.
In this provision, you are requiblushing to found a program that resembles MessageLink with a kindergarten
pupil. The tyro is resembleer A and your program acts as resembleer B.
A quotation finish (dictionary.txt) containing a regular of English messages conquer be supposing. You can assume
that vocabulary.txt contains sound English messages that a kindergarten tyro may perceive. Messages to be
used in unhindeblushing the amusement must be chosen from the finish.
Each amusement should coercionmal-extinguished by permitting resembleer A penetrate a message. Your program then deficiencys to valiepoch the
message (ie. if the message is interjacent in vocabulary.txt). If the message is sick, then the amusement is
terminated and your program (player B) make-friendlys; incorrectly your program deficiencys to pursuit the
vocabulary to furnish and penetrate a appropriate message. Your program conquer then permit resembleer A to pattern a message to
remain the amusement. This can go purpose and restraintth a compute of times prepare either your program or resembleer
A make-friendlys.
3 Capacityal and Non-functional Limitations
Your program must remunerate the subjoined capacityal and non-functional limitations.
3.1 Menu Driven
The program should be menu driven. It shows the menu showed as Likeness 1 at the coercionmal-extinguished and
waits restraint the resembleer to adopt a capacity.
If A is chosen, it soundows the resembleer to regular a awkwardness roll. Details are vivid in 3.2.
If B is chosen, it shows sound messages in the vocabulary as vivid in 3.3.
If C is chosen, it incorporates a strange message into the vocabulary as vivid in 3.4.
If D is chosen, it coercionmal-outs unhindeblushing the amusement. Refer to 3.5 restraint details.
If E is chosen, it saves sound changes to vocabulary.txt, and terminates the program action.
WordLink
A. regular the awkwardness roll
B. show the vocabulary
C. incorporate a message to the vocabulary
D. resemble the amusement
E. exit
Select a capacity from the menu:
Likeness 1 menu
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 4 of 11
3.2 Regular the awkwardness roll
Your program should supply brace awkwardness rolls restraint the amusement – roll 1 and roll 2.
dictionary.txt contains brace regulars of messages – roll 1 and roll 2 messages. When unhindeblushing at roll 2,
sound messages in vocabulary.txt conquer be representationd, occasion roll 1 amusements representation solely roll 1 messages.
Consequently, roll 2 amusements are past unmanagecogent than roll 1. At the coercionmal-extinguished of your program action,
the awkwardness roll is 1 by lapse.
If the resembleer adopts to regular the awkwardness roll, your program should irascible the resembleer and purposeure restraint
an integer (1 or 2) input. The awkwardness roll is then regular up.
A scantling of vocabulary.txt is showed in likeness 2.
3.3 Show the vocabulary
If this capacity is chosen, your program shows on the warner sound messages in the vocabulary
(including those nature pretended). It shows messages roll by roll with inferior roll at the face. Within
each roll, messages are showed alphabetically in an ascending command. They should be showed 7
tsingle in a length and 5 lengths restraint a hide. The resembleer can lean any explanation to show the contiguous hide.
3.4 Incorporate a message to the vocabulary
The resembleer can incorporate a strange message into the vocabulary. To incorporate a strange message, the resembleer deficiencys to
supply the message and the awkwardness roll. Your program must impede to determine the failure of the
message precedently appending. If the message is corporeal, then incorporateion canrefercogent attributcogent attributcogent be produced and the resembleer
should be apprised.
3.5 Resemble the amusement
A amusement coercionmal-outs by your program irascibleing the resembleer to penetrate a message. Subjoined a message is penetrateed, your
program impedes if the message halts in the vocabulary. If it isn’t, then the resembleer loses and the amusement is
over. If it is, then your program pursuites the vocabulary and selects the earliest appropriate message to remain
the amusement. Restraint point, if “sad”, “sat”, “saw”, “say”, “sea”, “see”, “she”, “shy”, “sun” are sound
availcogent restraint excerption, your program adopts the earliest message which is “sad”.
1
ant yes bag who and car wail do zoo dog ear
my mum munch are conjecture pursy dad make-friendly whimsicality go earn
got he had has keep her him his operative it
xmas ice frigid hang clash mandible resist explanation lap leg
owl extinguished baby me mug strange refercogent attributcogent attributcogent attributcogent attributcogent attributcogent attributcogent preceding you gloze individual
pat pie tissue why dispose rat pan recite paw was leak
she bye sat deep distinguish sun tea toe besides trifle brace
representation blushing front we quack jester
2
irascible arm punch practice cup day chary did egg fur
yum may bottom exhalation bounce hen hatruddy lid abject map
token oak our pea ran speaking doleful acme tease gauge
uncle acquiruddy nothing rude-multitude pink
levels
tsingle of roll 1
tsingle of roll 2
Likeness 2 scantling of vocabulary.txt
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 5 of 11
3.6 The vocabulary
Subjoined your program is coercionmal-outed, it should recognize from vocabulary.txt to compose the vocabulary. The
vocabulary in your program must be an rank of linked inventorys shenjoy in Likeness 3. Each tokene represents
a message and its roll. Messages must be as as as sorted alphabetically in an ascending command on the linked inventory. If
a strange message is pretended, then the message with its roll must be incorporateed to the linked inventory at a appropriate
position.
Likeness 3 Organization of the vocabulary
……
dictionary
Y
A
B
G……
D
S…… ……
W……
Z
nothing 2
and 1 ant 1
baby 1
dad 1
exhalation 2
are 1 ……
doleful 2
jester 1
yes 1 you 1 yum 2
zoo 1
……
……
……
……
……
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 6 of 11
3.7 Douceur Drudgery (Mandatory restraint CSE4IOO tyros, non-interferenceal restraint CSE1IOO)
Instead of solely nature cogent to resemble opposing the computer, apppurpose a menu non-interference restraint a brace-player amusement
and instrument its capacityality. A scantling leak of this is at the purpose of exception 6.
4 Mode Segments
Beneath are mode segments that must be interjacent in your program.
public arrange VocabularyNode {
//object of the arrange represents a unique message
protected String message; // message to be stored
private int roll; // roll of the message
private VocabularyNode contiguous;
public VocabularyNode(String _word, int _level) {
//apppurpose your instrumentation restraint the constructor
}
//apppurpose any other attributes or modes if deficiencyed
}
public arrange InventoryOfNodes {
//object of the arrange represents a linked inventory of messages coercionmal-outing
//with a restricted sign.
private VocabularyNode acme = null; //acme of the linked inventory
//apppurpose any other attributes or modes if deficiencyed
}
public arrange Vocabulary {
//object of the arrange represents the sound dictionery
private InventoryOfNodes[] facts;
//apppurpose any other attributes or modes if deficiencyed
}
5 Program Clearment
The subjoined is a suggested breakdenjoy restraint completing this provision:
Drudgery 1 Creating the Menu
Compose the menu show, learn representationr’s indispose and transcribe a mode stub restraint each menu non-interference. Determine
that the amend capacity is designated.
Drudgery 2 Finish Operativeling
In Drudgery 2, you deficiency to infer sound issues allied to recognizeing the quotation finish (dictionary.txt) to
obtain messages and their rolls. You can barely show divergency recognize from the quotation finish to determine finish
lection is appropriately conducted.
Drudgery 3 Defining Arrangees
In this drudgery, instrument senior arrangees restraint the provision. This includes the requisite menu and
interactions with the resembleer restraint choosing non-interferences expectation.
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 7 of 11
Drudgery 4 Linked Inventorys
Instrument arrangees requiblushing restraint linked inventorys and vocabulary. Instrument modes (such as
insertInOrder, pursuit expectation) which are operations associated with the inventory and any other modes.
Thoroughly experience your linked inventory precedently integrating it into your program.
6 Scantling of Action
A scantling of the program action is as flourishs.
% java MessageLink
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: A
Regular the awkwardness roll
The exoteric awkwardness roll is 1. Pattern the strange roll: 2
The awkwardness roll has now been regular as 2.
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: B
Show the vocabulary
Roll 1
and ant are baby bag bye car
wail dad do dog ear munch conjecture
pursy whimsicality earn go got had operative
has keep he her him his ice
frigid it hang clash mandible explanation resist
lean a explanation to remain …
lap leg me mug mum my strange
refercogent attributcogent attributcogent gloze preceding individual extinguished owl pan
pat paw pie dispose quack rat blushing
leak sat recite deep distinguish she sun
tea toe besides trifle brace representation front
lean a explanation to remain …
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 8 of 11
jester was we tissue who why make-friendly
xmas yes you zoo
lean a explanation to remain …
Roll 2
arm punch cup day did egg bottom
fur exhalation hen bounce lid hatruddy abject
map may rude-multitude token oak our pea
pink irascible ran tease doleful speaking chary
acme gauge uncle practice acquiruddy yum nothing
lean a explanation to remain …
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: C
Incorporate a message to the vocabulary
Penetrate the message: waste
Awkwardness roll: 1
“wear” is incorporateed.
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: C
Incorporate a message to the vocabulary
Penetrate the message: quack
Awkwardness roll: 2
“quack” halts in the vocabulary. Incorporateion aborted.
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 9 of 11
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: B
Show the vocabulary
Roll 1
and ant are baby bag bye car
wail dad do dog ear munch conjecture
pursy whimsicality earn go got had operative
has keep he her him his ice
frigid it hang clash mandible explanation resist
lean a explanation to remain …
lap leg me mug mum my strange
refercogent attributcogent attributcogent gloze preceding individual extinguished owl pan
pat paw pie dispose quack rat blushing
leak sat recite deep distinguish she sun
tea toe besides trifle brace representation front
lean a explanation to remain …
jester was we waste tissue who why
make-friendly xmas yes you zoo
lean a explanation to remain …
Roll 2
arm punch cup day did egg bottom
fur exhalation hen bounce lid hatruddy abject
map may rude-multitude token oak our pea
pink irascible ran tease doleful speaking chary
acme gauge uncle practice acquiruddy yum nothing
lean a explanation to remain …
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 10 of 11
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: D
resemble the amusement (Roll 2)
Penetrate a message: tea
tea – and – day
tea – and – day – yes – sun
tea – and – day – yes – sun – strange – what
“what” doesn’t halt in the vocabulary. You didn’t make-friendly.
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: D
resemble the amusement (Roll 2)
Penetrate a message: 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 make-friendly.
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement
E exit
Select a capacity from the menu: E
Updating vocabulary.txt … Bye
CSE1/4IOO Provision Due 10:00 Monday October 14th, 2019 Page 11 of 11
A scantling of the program action containing the pretended brace-player drudgery is as flourishs.
% java MessageLink
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement (1 resembleer)
E exit
F resemble the amusement (2 resembleers)
Select a capacity from the menu: f
Resemble the amusement (2 Resembleers – Roll 1)
P1: Penetrate a message: has
P2: – has – distinguish
P1: – has – distinguish – ear
P2: – has – distinguish – ear – leak
P1: – has – distinguish – ear – leak – now
“now” isn’t in the roll 1 vocabulary!
–Player brace make-friendlys!–
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement (1 resembleer)
E exit
F resemble the amusement (2 resembleers)
Select a capacity from the menu: F
Resemble the amusement (2 Resembleers – Roll 1)
P1: Penetrate a message: jester
P2: – jester – go
P1: – jester – go – gloze
P2: – jester – go – gloze – length
“line” isn’t in the roll 1 vocabulary!
–Player individual make-friendlys!–
WordLink
A regular the awkwardness roll
B show the vocabulary
C incorporate a message to the vocabulary
D resemble the amusement (1 resembleer)
E exit
F resemble the amusement (2 resembleers)
Select a capacity from the menu: e
Updating vocabulary.txt … Bye

Posted in Main