CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 1 of 11
La Trobe University
Department of Computer Science & Referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableification Technology
CSE1IOO/CSE4IOO Enactment Restrictedation
Semester 2, 2019
Objectives: the conduce of this enactment is to perform analysing a bearing in an object-oriented
manner, and designe and utensil an object-oriented elucidation using JAVA dialect.
Imputserviceable Continuance: 10:00am Monday October 14
th
, 2019.
1 General Referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableification
General referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableification abquenched the enactment is precise in this onlyity.
1.1 Toll
This enactment contributes 30% of the decisive toll coercion the material.
1.2 Yielding Instruction
Comply the electronic delineation of your enactment via the ‘Onlength Enactment Yielding’ assortification at
http://students.cs.latrobe.edu.au/student-tools/online-assign-submit/.
Alternately, you can so comply immediately through the latcs8 server. In the Arrangety make-friendlydow, likeness:
comply IOO
Where is the cfull of the finish you insufficiency to comply. You should rush this coercion each finish that
you purpose to comply.
NOTE 1: Opportunity you are clear to expand the regularity coercion this enactment on any exempt assortification, your
elucidation must rush on the latcs8 assortification.
NOTE 2: Please DO NOT zip your fountain regularity.
NOTE 3: You should simply comply your .java finishs.
NOTE 4: The yielding folder earn simply behove availserviceable 3 days antecedently the imputserviceable continuance.
Yielding behind the deadlength earn meet a retribution of 5% of the decisive enactment referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributablee per day. If
you enjoy encountesanguine opposedies that control to stoppageed yielding or no yielding, you should apply
coercion extraordinary compensation. No enactment is veritserviceable behind 4 days’ stoppage.
1.3 Academic Integrity
This is an only enactment. When complyting the enactment, learners are requisanguine to comply
their enjoy product simply. La Trobe University treats plagiarism seriously. When detected, penalties are
strictly imposed.
Further referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableification can be establish on https://www.latrobe.edu.au/students/admin/academic-integrity
1.4 Programming Dialect
The program is requisanguine to be expanded in JAVA.
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 2 of 11
1.5 Referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableeing Scheme Overview
The enactment consists of couple volume:
(1) The kernel businesss, as shenjoy in onlyitys 3.1 – 3.6
(2) An subjoined business in onlyity 3.7 (Business 3.7) This is a mandatory business coercion CSE4IOO learners.
Coercion CSE1IOO learners, this business is non-interferenceal. A climax of 10% benefit referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributablees earn be
awarded if a CSE1IOO learner completes or insufficiently completes the business.
Enactment referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableeing is fixed on the aftercited guidelines
(1) Utensilation (Preventive of regularity) (80%) (Do full volume of the program enact well?
Does the program beenjoy according to fitnesss of the enactment?)
Note that your program must faversion the fitness 3.6. Up to 40% of referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributablee abatement earn
be made coercion complyting a program with a irrelative grounds construction. This so resources any direct
or heterogeneous decedent assortes of Convokeion interface in JAVA API, such as LinkedList,
ArrayList, Vector or HashSet scantiness of acquiredder are referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable fullowed in the enactment.
(2) Program Design and Construction (15%) (Does the program clear-up the bearing in a welldesigned carriage?)
(3) Layquenched and Documentation (5%) (Does the regularity supervene the Coding Standard?)
1.6 Preventive Trial
The preventive trial coercion the enactment is conducted during the lab meeting in Week 12 (i.e. between
21st and 25
th October). During the trial, your savant earn rush the program with you opportunity referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributableeing it.
The trial earn be conducted from the yielding area, referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable from learner accounts. Please fix that
your regularity rushs on latcs8 antecedently yielding.
2 Bearing Description
WordLink is an English promisebook diversion coercion couple personateers. Personateers are requisanguine to bestow English
signification in turns, and the controlemost quality of the promise must be the selfselfsame as the conclusive quality of the
previous promise. Coercion stance, opportunity personateer A and personateer B are unhindesanguine the diversion, if A bestows the
promise “grass”, then B has to yield a promise rouseing with ‘s’ which is the conclusive quality of “grass”. If B
presents “sunny”, then A wants to furnish a promise rouseing with ‘y’. A promise canreferserviceable attributserviceable attributserviceable attributserviceable be manifestationd twice in
only diversion. The diversion remains plowly only of the personateers loses. There are four scenarios in which a
player loses the diversion. These are
(1) the personateer canreferserviceable attributserviceable attributserviceable attributserviceable perceive a promise to remain the diversion.
(2) the personateer has bestowed a promise which rouses with a irrelative quality.
(3) the personateer has gifted a many promise.
(4) the spelling of the promise is incorrect
In any occurrence, if only personateer is obsolete, then the other personateer make-friendlys the diversion. A estimate of stances of the
diversion are scheduleed as under.
Stance 1
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “grass”
The diversion is purposeed and Personateer A make-friendlys. This is owing “grass” is manifestationd twice.
Stance 2
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “out”
The diversion is purposeed and Personateer A make-friendlys. This is owing personateer B is expected to bestow a promise
starting with ‘g’, control-this-reason “out” is referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable a just precious.
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 3 of 11
Stance 3
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “doog”
The diversion is purposeed and Personateer B make-friendlys. This is owing “doog” is inwell spelt.
In this enactment, you are requisanguine to elevate a program that personates PromiseLink with a kindergarten
pupil. The learner is personateer A and your program acts as personateer B.
A quotation finish (dictionary.txt) containing a determined of English promises earn be supposing. You can assume
that messagebook.txt contains full English promises that a kindergarten learner may distinguish. Promises to be
used in unhindesanguine the diversion must be separated from the finish.
Each diversion should romanifestation by totalowting personateer A penetrate a promise. Your program then wants to valicontinuance the
promise (ie. if the promise is interposed in messagebook.txt). If the promise is infirm, then the diversion is
terminated and your program (player B) make-friendlys; incorrectly your program wants to pursuit the
wordbook to perceive and penetrate a just promise. Your program earn then totalowly personateer A to likeness a promise to
remain the diversion. This can go tail and coercionth a estimate of times plowly either your program or personateer
A make-friendlys.
3 Negotiative and Non-negotiative Fitnesss
Your program must faversion the aftercited negotiative and non-negotiative fitnesss.
3.1 Menu Driven
The program should be menu driven. It shows the menu showed as Emblem 1 at the romanifestation and
waits coercion the personateer to appropriate a letter.
If A is separated, it fullows the personateer to determined a inaptitude raze. Details are coercioncible in 3.2.
If B is separated, it shows full promises in the messagebook as coercioncible in 3.3.
If C is separated, it insinuates a upstartlightlightlight promise into the messagebook as coercioncible in 3.4.
If D is separated, it rouses unhindesanguine the diversion. Refer to 3.5 coercion details.
If E is separated, it saves full changes to messagebook.txt, and terminates the program preventive.
WordLink
A. determined the inaptitude raze
B. show the messagebook
C. insinuate a promise to the messagebook
D. personate the diversion
E. exit
Select a letter from the menu:
Emblem 1 menu
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 4 of 11
3.2 Determined the inaptitude raze
Your program should procure couple inaptitude razes coercion the diversion – raze 1 and raze 2.
dictionary.txt contains couple determineds of promises – raze 1 and raze 2 promises. When unhindesanguine at raze 2,
full promises in messagebook.txt earn be manifestationd, opportunity raze 1 diversions manifestation simply raze 1 promises.
Consequently, raze 2 diversions are further opposed than raze 1. At the romanifestation of your program preventive,
the inaptitude raze is 1 by failure.
If the personateer appropriates to determined the inaptitude raze, your program should brisk the personateer and purposeure coercion
an integer (1 or 2) input. The inaptitude raze is then determined up.
A pattern of messagebook.txt is showed in emblem 2.
3.3 Show the messagebook
If this letter is separated, your program shows on the warner full promises in the messagebook
(including those substance adventitious). It shows promises raze by raze with inferior raze at the front. Within
each raze, promises are showed alphabetically in an ascending appoint. They should be showed 7
signification in a length and 5 lengths coercion a curtain. The personateer can squeeze any explanation to show the present curtain.
3.4 Insinuate a promise to the messagebook
The personateer can insinuate a upstartlightlightlight promise into the messagebook. To insinuate a upstartlightlightlight promise, the personateer wants to
procure the promise and the inaptitude raze. Your program must inhibit to fix the scantiness of the
promise antecedently gathering. If the promise is true, then insinuateion canreferserviceable attributserviceable attributserviceable attributserviceable be produced and the personateer
should be conscious.
3.5 Personate the diversion
A diversion rouses by your program brisking the personateer to penetrate a promise. Behind a promise is penetrateed, your
program inhibits if the promise pauses in the messagebook. If it isn’t, then the personateer loses and the diversion is
over. If it is, then your program pursuites the messagebook and selects the controlemost just promise to remain
the diversion. Coercion aversionustration, if “sad”, “sat”, “saw”, “say”, “sea”, “see”, “she”, “shy”, “sun” are full
availserviceable coercion choice, your program appropriates the controlemost promise which is “sad”.
1
ant yes bag who and car wail do zoo dog ear
my mum munch are conjecture unctuous dad make-friendly whimsicality go procure
got he had has enjoy her him his operative it
xmas ice icy catch interfere score resist explanation lap leg
owl quenched baby me mug upstartlightlightlight referserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable attributserviceable ancient you ease only
pat pie work why arrange rat pan declare paw was rush
she bye sat ocean visit sun tea toe as-well vision couple
manifestation sanguine face we quack droll-fellow
2
fast arm buffet practice cup day timid did egg fur
yum may sole fume vault hen aversion lid lowlyly map
orders oak our pea ran rehearseing saturnine extreme vex attempt
uncle acquiruddy nothing rude-multitude pink
levels
signification of raze 1
signification of raze 2
Emblem 2 pattern of messagebook.txt
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 5 of 11
3.6 The messagebook
Behind your program is rouseed, it should discover from messagebook.txt to invent the messagebook. The
wordbook in your program must be an arrange of linked schedules shenjoy in Emblem 3. Each orderse represents
a promise and its raze. Promises must be as as as sorted alphabetically in an ascending appoint on the linked schedule. If
a upstartlightlightlight promise is adventitious, then the promise with its raze must be insinuateed to the linked schedule at a just
position.
Emblem 3 Construction of the messagebook
……
dictionary
Y
A
B
G……
D
S…… ……
W……
Z
nothing 2
and 1 ant 1
baby 1
dad 1
fume 2
are 1 ……
saturnine 2
droll-fellow 1
yes 1 you 1 yum 2
zoo 1
……
……
……
……
……
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 6 of 11
3.7 Benefit Business (Mandatory coercion CSE4IOO learners, non-interferenceal coercion CSE1IOO)
Instead of simply substance serviceserviceable to personate despite the computer, gather a menu non-interference coercion a couple-player diversion
and utensil its negotiativeity. A pattern rush of this is at the purpose of onlyity 6.
4 Regularity Segments
Under are regularity segments that must be interposed in your program.
public assort MessagebookNode {
//object of the assort represents a only promise
protected String promise; // promise to be stored
private int raze; // raze of the promise
private MessagebookNode present;
public MessagebookNode(String _word, int _level) {
//gather your utensilation coercion the constructor
}
//gather any other attributes or regularitys if wanted
}
public assort ScheduleOfNodes {
//object of the assort represents a linked schedule of promises rouseing
//with a restricted quality.
private MessagebookNode acme = null; //acme of the linked schedule
//gather any other attributes or regularitys if wanted
}
public assort Messagebook {
//object of the assort represents the perfect dictionery
private ScheduleOfNodes[] grounds;
//gather any other attributes or regularitys if wanted
}
5 Program Expandment
The aftercited is a suggested breakdenjoy coercion completing this enactment:
Business 1 Creating the Menu
Invent the menu show, convoke manifestationr’s inarrange and transcribe a regularity stub coercion each menu non-interference. Fix
that the reform letter is designated.
Business 2 Finish Operativeling
In Business 2, you want to meditate full issues akin to discovering the quotation finish (dictionary.txt) to
obtain promises and their razes. You can simply show fluctuation discover from the quotation finish to fix finish
lection is well conducted.
Business 3 Defining Assortes
In this business, utensil greater assortes coercion the enactment. This includes the compulsory menu and
interactions with the personateer coercion choosing non-interferences scantiness of acquiredder.
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 7 of 11
Business 4 Linked Schedules
Utensil assortes requisanguine coercion linked schedules and messagebook. Utensil regularitys (such as
insertInOrder, pursuit scantiness of acquiredder) which are operations associated with the schedule and any other regularitys.
Thoroughly trial your linked schedule antecedently integrating it into your program.
6 Pattern of Preventive
A pattern of the program preventive is as supervenes.
% java PromiseLink
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: A
Determined the inaptitude raze
The general inaptitude raze is 1. Likeness the upstartlightlightlight raze: 2
The inaptitude raze has now been determined as 2.
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: B
Show the messagebook
Raze 1
and ant are baby bag bye car
wail dad do dog ear munch conjecture
unctuous whimsicality procure go got had operative
has enjoy he her him his ice
icy it catch interfere score explanation resist
squeeze a explanation to remain …
lap leg me mug mum my upstartlightlight
referserviceable attributserviceable attributserviceable attributserviceable ease ancient only quenched owl pan
pat paw pie arrange quack rat sanguine
rush sat declare ocean visit she sun
tea toe as-well vision couple manifestation face
squeeze a explanation to remain …
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 8 of 11
droll-fellow was we work who why make-friendly
xmas yes you zoo
squeeze a explanation to remain …
Raze 2
arm buffet cup day did egg sole
fur fume hen vault lid aversion lowly
map may rude-multitude orders oak our pea
pink fast ran vex saturnine rehearseing timid
extreme attempt uncle practice acquiruddy yum nothing
squeeze a explanation to remain …
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: C
Insinuate a promise to the messagebook
Penetrate the promise: diminish
Inaptitude raze: 1
“wear” is insinuateed.
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: C
Insinuate a promise to the messagebook
Penetrate the promise: quack
Inaptitude raze: 2
“quack” pauses in the messagebook. Insinuateion aborted.
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 9 of 11
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: B
Show the messagebook
Raze 1
and ant are baby bag bye car
wail dad do dog ear munch conjecture
unctuous whimsicality procure go got had operative
has enjoy he her him his ice
icy it catch interfere score explanation resist
squeeze a explanation to remain …
lap leg me mug mum my upstartlightlight
referserviceable attributserviceable attributserviceable attributserviceable ease ancient only quenched owl pan
pat paw pie arrange quack rat sanguine
rush sat declare ocean visit she sun
tea toe as-well vision couple manifestation face
squeeze a explanation to remain …
droll-fellow was we diminish work who why
make-friendly xmas yes you zoo
squeeze a explanation to remain …
Raze 2
arm buffet cup day did egg sole
fur fume hen vault lid aversion lowly
map may rude-multitude orders oak our pea
pink fast ran vex saturnine rehearseing timid
extreme attempt uncle practice acquiruddy yum nothing
squeeze a explanation to remain …
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 10 of 11
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: D
personate the diversion (Raze 2)
Penetrate a promise: tea
tea – and – day
tea – and – day – yes – sun
tea – and – day – yes – sun – upstartlightlightlight – what
“what” doesn’t pause in the messagebook. You didn’t make-friendly.
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: D
personate the diversion (Raze 2)
Penetrate a promise: may
may – yes – declare
may – yes – declare – you – uncle
may – yes – declare – you – uncle – ear – sanguine
may – yes – declare – you – uncle – ear – sanguine – dad – day
may – yes – declare – you – uncle – ear – sanguine – dad – day – yum – my
Well done! You make-friendly.
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion
E exit
Select a letter from the menu: E
Updating messagebook.txt … Bye
CSE1/4IOO Enactment Imputserviceable 10:00 Monday October 14th, 2019 Page 11 of 11
A pattern of the program preventive containing the subjoined couple-player business is as supervenes.
% java PromiseLink
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion (1 personateer)
E exit
F personate the diversion (2 personateers)
Select a letter from the menu: f
Personate the diversion (2 Personateers – Raze 1)
P1: Penetrate a promise: has
P2: – has – visit
P1: – has – visit – ear
P2: – has – visit – ear – rush
P1: – has – visit – ear – rush – now
“now” isn’t in the raze 1 messagebook!
–Player couple make-friendlys!–
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion (1 personateer)
E exit
F personate the diversion (2 personateers)
Select a letter from the menu: F
Personate the diversion (2 Personateers – Raze 1)
P1: Penetrate a promise: droll-fellow
P2: – droll-fellow – go
P1: – droll-fellow – go – ease
P2: – droll-fellow – go – ease – length
“line” isn’t in the raze 1 messagebook!
–Player only make-friendlys!–
WordLink
A determined the inaptitude raze
B show the messagebook
C insinuate a promise to the messagebook
D personate the diversion (1 personateer)
E exit
F personate the diversion (2 personateers)
Select a letter from the menu: e
Updating messagebook.txt … Bye

Posted in Main