Exercise 2 - Classes
due: start of class Feb 6, individual, Recorded
****NEW Getting Started TIPs video ******
Extend your previous exercise application AddressBookApplication. so that contains an instance of a class AddressBook. The AddressBook class holds a collection of objects of the class AddressEntry. An AddressEntry represent a single contact in your AddressBook. Look at the requirements of Project 1 to consider what kind of data structure you might used for your collection of AddressEntry objects so that you efficiently - load from file, list in alphabetic order, search/find, add and remove.
Note: this work can help you with your Project 1 requirements.
- In the main method of AddressBookApplication you are to create an instance of AddressBook (call it ab).
- NEXT, you are to create a method in your AddressBookApplication called void initAddressBookExercise(ab) that creates 2 instances of AddressEntry and places them in ab (an AddressBook) collection called AddressEntryList. NEXT, the initAddressBookExercise method it calls the AddressBook's ab.list() method.
- NOTE: The AddressBook's list() method cycles through the collection of AddresEntry objects using an iterator the contained in AddressBook and print outs the information to the console window calling toString() methods on each of its AddressEntry objects.
- Note: AddressEntry class must have a String toString() method that takes all of its data elements and composes a nicely formated string from its values and returns this string. Again refer to Project 1.
Basically you will be implementing these Parts of the UML classes from Project 1
the packages you will use and their classes are:
- address = contains AddressBookApplciation class
- address.data = contains AddressEntry and any other data classes you created.
Deliverables
Demonstrate to fellow class mates during class ---if you did not succeed this is your SAFTEY check to get help from instructor --you WILL be required to do this work for your project. Note: I won't give you points back --ideally you come and see me for help before the exercise is due.
Designate a student from your check off group that is to post to go to BB->Exercises->Exercise 2 and post:
By 11pm of the due date, one person from your group will post on behalf of the group and report how each person in the group did with regards to completion of the exercise -by classifying them into fully, partially completed or no code attempted. Please use the following format when posting.
List of people fully completed:
List of people partially completed:
List of people with no code related to exercise:
|
EVALUATION DISCLAIMER: First, not that you will be simply assess by rubric for it working fully, partially complete or no significant attempt. This code is related to Project 1 --and this is peer group evaluated, so getting full score on this will not indicate how I as your instructor will evaluate your project 1. The purpose of this exercise is simply to get some level of functionality accomplished and does not assess the quality of that work. If you are having difficulty with the exercise code, I would like to ask you to come to office hours so you can get help and ask questions.