Practice 5 (Year 3 Sem 1)

Practice 5 is the fifth practice in semester 1 of year 3, and the fifth practice in the total of year 3. It is a practice for revision of chapter 1 to 11, and is considered to be moderately easy.

Description
This revision lab consists of some extra coding exercises covering concepts in Chapters 1 to 11. This will be a good practice for Lab Test 2. You should just take 1h 30min to complete this revision as a "simulation" for lab test 2. Please note that the autograder only grade parts of the questions. You should do your own testing to verify the correctness of your code. Similarly, during lab test, live autograding is minimal.

Unlocked after completion

 * OCD (Score at least 60% for Extra Practice 5: Revision for C1 to C11)
 * All Set (Score at least 80% for Extra Practice 5: Revision for C1 to C11)

Files

 * AvatarCompany.java
 * [[Media:CS3231 Revision Ex 2.pdf|CS3231 Revision Ex 2.pdf]]
 * PhoneBookTester.java
 * PhoneBook.java
 * list.txt
 * Contact.java
 * AvatarCompanyTester.java

Side note
Rest of files are available [[Media:Y3S1P5.zip|here]].

Note that it might say the files are malicious. They are not, as the zip file contains only the pre-provided files from Coursemology.

Question
The Contact class is a Java class designed to store the contact details of a student. Complete the parts (a) to (d) in Contact.java as specified in the PDF question paper.

Solution
todo

Question
The Phonebook class is a Java class designed to store up to 10 contacts. Complete parts (e) to (i) in PhoneBook.java as specified in the PDF question paper. Note that Contact.java and list.txt is already uploaded into the question

Solution
todo

Question
The AvatarCompany class maintains all the PhoneBooks of the employees in the company in an ArrayList directory . Complete parts (j) to (m) in AvatarCompany.java as specified in the PDF question paper. Note that Contact.java, PhoneBook.java and list.txt has already been uploaded into this question.

Solution
todo