CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 1 of 11
La Trobe University
Department of Computer Science & Referableice Technology
CSE1IOO/CSE4IOO Enactment Biasedation
Semester 2, 2019
Objectives: the nurture of this enactment is to deal-in analysing a musterion in an object-oriented
manner, and designe and appliance an object-oriented disentanglement using JAVA phraseology.
Ascribserviceable Continuance: 10:00am Monday October 14
th
, 2019.
1 General Referableice
General referableice abquenched the enactment is biased in this minority.
1.1 Tribute
This enactment contributes 30% of the terminal tribute control the culminationic.
1.2 Patience Instruction
Suggest the electronic vision of your enactment via the ‘Oncourse Enactment Patience’ rule at
http://students.cs.latrobe.edu.au/student-tools/online-assign-submit/.
Alternately, you can so suggest sprightlyly through the latcs8 server. In the Completeayty reconciledow, idea:
suggest IOO
Where is the designate of the perfect you failure to suggest. You should pass this control each perfect that
you indicate to suggest.
NOTE 1: Conjuncture you are generous to unfpristine the rule control this enactment on any bounteous rule, your
disentanglement must pass on the latcs8 rule.
NOTE 2: Please DO NOT zip your fount rule.
NOTE 3: You should solely suggest your .java perfects.
NOTE 4: The patience folder accomplish solely befit availserviceable 3 days anteriorly the ascribserviceable continuance.
Patience behind the deadcourse accomplish leak a cefeiture of 5% of the terminal enactment indication per day. If
you keep encounteblushing up-hillies that administer to ssubsided patience or no patience, you should apply
control biased importance. No enactment is reliserviceable behind 4 days’ retrogression.
1.3 Academic Integrity
This is an singular enactment. When suggestting the enactment, scholars are requiblushing to suggest
their possess is-sue solely. La Trobe University treats plagiarism seriously. When detected, penalties are
strictly imposed.
Further referableice can be firm-up on https://www.latrobe.edu.au/students/admin/academic-integrity
1.4 Programming Phraseology
The program is requiblushing to be unfolded in JAVA.
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 2 of 11
1.5 Indicationing Scheme Overview
The enactment consists of brace compatability:
(1) The kernel undertakings, as shpossess in minoritys 3.1 – 3.6
(2) An attached undertaking in minority 3.7 (Undertaking 3.7) This is a mandatory undertaking control CSE4IOO scholars.
Control CSE1IOO scholars, this undertaking is non-interferenceal. A completion of 10% douceur indications accomplish be
awarded if a CSE1IOO scholar completes or insufficiently completes the undertaking.
Enactment indicationing is based on the subjoined guidelines
(1) Applianceation (Preventive of rule) (80%) (Do every compatability of the program enact suitably?
Does the program bekeep according to requirements of the enactment?)
Note that your program must assure the requirement 3.6. Up to 40% of indication inference accomplish
be made control suggestting a program with a opposed basis constitution. This so media any direct
or coercioneign decedent rankes of Musterion interface in JAVA API, such as LinkedList,
ArrayList, Vector or HashSet anticipation are referserviceable everyowed in the enactment.
(2) Program Design and Constitution (15%) (Does the program unfpristine the musterion in a welldesigned style?)
(3) Layquenched and Documentation (5%) (Does the rule thrive the Coding Standard?)
1.6 Preventive Experiment
The preventive experiment control the enactment is conducted during the lab convocation in Week 12 (i.e. between
21st and 25
th October). During the experiment, your master accomplish pass the program with you conjuncture indicationing it.
The experiment accomplish be conducted from the patience area, referserviceable from scholar accounts. Please fix that
your rule passs on latcs8 anteriorly patience.
2 Musterion Description
WordLink is an English vocabulary recreation control brace denoteers. Denoteers are requiblushing to grant English
suffrage in turns, and the leading record of the account must be the corresponding as the laexperience record of the
previous account. Control stance, conjuncture denoteer A and denoteer B are clear the recreation, if A grants the
account “grass”, then B has to grant a account begining with ‘s’ which is the laexperience record of “grass”. If B
presents “sunny”, then A needs to furnish a account begining with ‘y’. A account canreferserviceable be representationd twice in
unmarried recreation. The recreation abides dress unmarried of the denoteers loses. There are lewd scenarios in which a
player loses the recreation. These are
(1) the denoteer canreferserviceable furnish a account to abide the recreation.
(2) the denoteer has granted a account which begins with a opposed record.
(3) the denoteer has gifted a represent account.
(4) the spelling of the account is incorrect
In any circumstance, if unmarried denoteer is lost, then the other denoteer reconciles the recreation. A sum of stances of the
recreation are rolled as beneath.
Stance 1
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “grass”
The recreation is purposeed and Denoteer A reconciles. This is owing “grass” is representationd twice.
Stance 2
(Player A) “grass” – (Player B) “sunny” – (A) “yellow” – (B) “world” – (A) “dog” – (B) “out”
The recreation is purposeed and Denoteer A reconciles. This is owing denoteer B is expected to grant a account
starting with ‘g’, hence “out” is referserviceable a fit dainty.
CSE1/4IOO Enactment Ascribserviceable 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 recreation is purposeed and Denoteer B reconciles. This is owing “doog” is insuitably spelt.
In this enactment, you are requiblushing to build a program that denotes AccountLink with a kindergarten
pupil. The ward is denoteer A and your program acts as denoteer B.
A passage perfect (dictionary.txt) containing a firm of English accounts accomplish be supposing. You can assume
that lexicon.txt contains every English accounts that a kindergarten ward may understand. Accounts to be
used in clear the recreation must be separated from the perfect.
Each recreation should begin by sufferting denoteer A invade a account. Your program then needs to valicontinuance the
account (ie. if the account is comprised in lexicon.txt). If the account is feeble, then the recreation is
terminated and your program (player B) reconciles; inappropriately your program needs to quest the
lexicon to furnish and invade a fit account. Your program accomplish then suffer denoteer A to idea a account to
abide the recreation. This can go tail and controlth a sum of times dress either your program or denoteer
A reconciles.
3 Authoritative and Non-authoritative Requirements
Your program must assure the subjoined authoritative and non-authoritative requirements.
3.1 Menu Driven
The program should be menu driven. It shows the menu showed as Symbol 1 at the begin and
waits control the denoteer to elect a exercise.
If A is separated, it everyows the denoteer to firm a inaptitude smooth. Details are restraintcible in 3.2.
If B is separated, it shows every accounts in the lexicon as restraintcible in 3.3.
If C is separated, it introduces a innovating account into the lexicon as restraintcible in 3.4.
If D is separated, it begins clear the recreation. Refer to 3.5 control details.
If E is separated, it saves every changes to lexicon.txt, and terminates the program preventive.
WordLink
A. firm the inaptitude smooth
B. show the lexicon
C. introduce a account to the lexicon
D. denote the recreation
E. exit
Select a exercise from the menu:
Symbol 1 menu
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 4 of 11
3.2 Firm the inaptitude smooth
Your program should afford brace inaptitude smooths control the recreation – smooth 1 and smooth 2.
dictionary.txt contains brace firms of accounts – smooth 1 and smooth 2 accounts. When clear at smooth 2,
every accounts in lexicon.txt accomplish be representationd, conjuncture smooth 1 recreations representation solely smooth 1 accounts.
Consequently, smooth 2 recreations are further up-hdislike than smooth 1. At the begin of your program preventive,
the inaptitude smooth is 1 by failure.
If the denoteer elects to firm the inaptitude smooth, your program should active the denoteer and purposeure control
an integer (1 or 2) input. The inaptitude smooth is then firm up.
A case of lexicon.txt is showed in symbol 2.
3.3 Show the lexicon
If this exercise is separated, your program shows on the adviser every accounts in the lexicon
(including those life external). It shows accounts smooth by smooth with inferior smooth at the face. Within
each smooth, accounts are showed alphabetically in an ascending command. They should be showed 7
suffrage in a course and 5 courses control a palliate. The denoteer can lean any clew to show the instant palliate.
3.4 Introduce a account to the lexicon
The denoteer can introduce a innovating account into the lexicon. To introduce a innovating account, the denoteer needs to
afford the account and the inaptitude smooth. Your program must curb to fix the failure of the
account anteriorly gathering. If the account is material, then introduceion canreferserviceable be dundivided and the denoteer
should be assured.
3.5 Denote the recreation
A recreation begins by your program activeing the denoteer to invade a account. Behind a account is invadeed, your
program curbs if the account endures in the lexicon. If it isn’t, then the denoteer loses and the recreation is
over. If it is, then your program questes the lexicon and selects the leading fit account to abide
the recreation. Control occurrence, if “sad”, “sat”, “saw”, “say”, “sea”, “see”, “she”, “shy”, “sun” are every
availserviceable control gathering, your program elects the leading account which is “sad”.
1
ant yes bag who and car whimper do zoo dog ear
my mum masticate are conjecture rich dad reconcile comicality go attain
got he had has keep her him his operative it
xmas ice frigid oar clash mandible rebel clew lap leg
owl quenched baby me mug innovating referserviceable pristine you gloze unmarried
pat pie quotationure why completeay rat pan judge paw was pass
she bye sat deep beware sun tea toe besides vision brace
representation blushing face we quack joker
2
sprightly instrument smack practice cup day timid did egg fur
yum may sole fog bound hen dislike lid subsided map
influence oak our pea ran speaking woe-begundivided culmination tease examine
uncle acquiblushing nothing tumultuous-rabble pink
levels
suffrage of smooth 1
suffrage of smooth 2
Symbol 2 case of lexicon.txt
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 5 of 11
3.6 The lexicon
Behind your program is begined, it should interpret from lexicon.txt to coercionm the lexicon. The
lexicon in your program must be an dress of linked rolls shpossess in Symbol 3. Each influencee represents
a account and its smooth. Accounts must be select alphabetically in an ascending command on the linked roll. If
a innovating account is external, then the account with its smooth must be introduceed to the linked roll at a fit
position.
Symbol 3 Constitution of the lexicon
……
dictionary
Y
A
B
G……
D
S…… ……
W……
Z
nothing 2
and 1 ant 1
baby 1
dad 1
fog 2
are 1 ……
woe-begundivided 2
joker 1
yes 1 you 1 yum 2
zoo 1
……
……
……
……
……
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 6 of 11
3.7 Douceur Undertaking (Mandatory control CSE4IOO scholars, non-interferenceal control CSE1IOO)
Instead of solely life serviceserviceable to denote resisting the computer, gather a menu non-interference control a brace-player recreation
and appliance its authoritativeity. A case pass of this is at the purpose of minority 6.
4 Rule Segments
Beneath are rule segments that must be comprised in your program.
public rank LexiconNode {
//object of the rank represents a unmarried account
protected String account; // account to be stored
private int smooth; // smooth of the account
private LexiconNode instant;
public LexiconNode(String _word, int _level) {
//gather your applianceation control the constructor
}
//gather any other attributes or orders if needed
}
public rank RollOfNodes {
//object of the rank represents a linked roll of accounts begining
//with a biased record.
private LexiconNode leader = null; //leader of the linked roll
//gather any other attributes or orders if needed
}
public rank Lexicon {
//object of the rank represents the well dictionery
private RollOfNodes[] basis;
//gather any other attributes or orders if needed
}
5 Program Unfoldment
The subjoined is a suggested breakdpossess control completing this enactment:
Undertaking 1 Creating the Menu
Form the menu show, muster representationr’s inallay and transcribe a order stub control each menu non-interference. Fix
that the punish exercise is named.
Undertaking 2 Perfect Operativeling
In Undertaking 2, you need to deem every issues kindblushing to interpreting the passage perfect (dictionary.txt) to
obtain accounts and their smooths. You can solely show fluctuation interpret from the passage perfect to fix perfect
lection is suitably conducted.
Undertaking 3 Defining Rankes
In this undertaking, appliance main rankes control the enactment. This includes the inevitable menu and
interactions with the denoteer control choosing non-interferences anticipation.
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 7 of 11
Undertaking 4 Linked Rolls
Appliance rankes requiblushing control linked rolls and lexicon. Appliance orders (such as
insertInOrder, quest anticipation) which are operations associated with the roll and any other orders.
Thoroughly experiment your linked roll anteriorly integrating it into your program.
6 Case of Preventive
A case of the program preventive is as thrives.
% java AccountLink
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: A
Firm the inaptitude smooth
The present inaptitude smooth is 1. Idea the innovating smooth: 2
The inaptitude smooth has now been firm as 2.
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: B
Show the lexicon
Smooth 1
and ant are baby bag bye car
whimper dad do dog ear masticate conjecture
rich comicality attain go got had operative
has keep he her him his ice
frigid it oar clash mandible clew rebel
lean a clew to abide …
lap leg me mug mum my innovating
referserviceable gloze pristine unmarried quenched owl pan
pat paw pie completeay quack rat blushing
pass sat judge deep beware she sun
tea toe besides vision brace representation face
lean a clew to abide …
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 8 of 11
joker was we quotationure who why reconcile
xmas yes you zoo
lean a clew to abide …
Smooth 2
instrument smack cup day did egg sole
fur fog hen bound lid dislike subsided
map may tumultuous-rabble influence oak our pea
pink sprightly ran tease woe-begundivided speaking timid
culmination examine uncle practice acquiblushing yum nothing
lean a clew to abide …
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: C
Introduce a account to the lexicon
Invade the account: exhibit
Inaptitude smooth: 1
“wear” is introduceed.
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: C
Introduce a account to the lexicon
Invade the account: quack
Inaptitude smooth: 2
“quack” endures in the lexicon. Introduceion aborted.
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 9 of 11
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: B
Show the lexicon
Smooth 1
and ant are baby bag bye car
whimper dad do dog ear masticate conjecture
rich comicality attain go got had operative
has keep he her him his ice
frigid it oar clash mandible clew rebel
lean a clew to abide …
lap leg me mug mum my innovating
referserviceable gloze pristine unmarried quenched owl pan
pat paw pie completeay quack rat blushing
pass sat judge deep beware she sun
tea toe besides vision brace representation face
lean a clew to abide …
joker was we exhibit quotationure who why
reconcile xmas yes you zoo
lean a clew to abide …
Smooth 2
instrument smack cup day did egg sole
fur fog hen bound lid dislike subsided
map may tumultuous-rabble influence oak our pea
pink sprightly ran tease woe-begundivided speaking timid
culmination examine uncle practice acquiblushing yum nothing
lean a clew to abide …
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 10 of 11
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: D
denote the recreation (Smooth 2)
Invade a account: tea
tea – and – day
tea – and – day – yes – sun
tea – and – day – yes – sun – innovating – what
“what” doesn’t endure in the lexicon. You didn’t reconcile.
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: D
denote the recreation (Smooth 2)
Invade a account: may
may – yes – judge
may – yes – judge – you – uncle
may – yes – judge – you – uncle – ear – blushing
may – yes – judge – you – uncle – ear – blushing – dad – day
may – yes – judge – you – uncle – ear – blushing – dad – day – yum – my
Well done! You reconcile.
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation
E exit
Select a exercise from the menu: E
Updating lexicon.txt … Bye
CSE1/4IOO Enactment Ascribserviceable 10:00 Monday October 14th, 2019 Page 11 of 11
A case of the program preventive containing the attached brace-player undertaking is as thrives.
% java AccountLink
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation (1 denoteer)
E exit
F denote the recreation (2 denoteers)
Select a exercise from the menu: f
Denote the recreation (2 Denoteers – Smooth 1)
P1: Invade a account: has
P2: – has – beware
P1: – has – beware – ear
P2: – has – beware – ear – pass
P1: – has – beware – ear – pass – now
“now” isn’t in the smooth 1 lexicon!
–Player brace reconciles!–
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation (1 denoteer)
E exit
F denote the recreation (2 denoteers)
Select a exercise from the menu: F
Denote the recreation (2 Denoteers – Smooth 1)
P1: Invade a account: joker
P2: – joker – go
P1: – joker – go – gloze
P2: – joker – go – gloze – course
“line” isn’t in the smooth 1 lexicon!
–Player unmarried reconciles!–
WordLink
A firm the inaptitude smooth
B show the lexicon
C introduce a account to the lexicon
D denote the recreation (1 denoteer)
E exit
F denote the recreation (2 denoteers)
Select a exercise from the menu: e
Updating lexicon.txt … Bye

Posted in Main