Exercise 5 - File I/O
due:(optional)
Extend your previous exercise application AddressBookApplication. so that it creates a new method void init(String filename) which reads in data from the specified file to initialize the collection of AddressEntry elements stored in the AddressBookApplication. This exercise can help you with Project 1 (please see Project 1 requirements to maximize the correlation).
Modify your AddressBookApplication so that its main method invokes its init(filename) with this file. Note that there is NO assummed size to the file. It could contain 0 to MANY addresses and you should read and parse the data until the end of file. Also, the main method of AddressBookApplication after calling init(filename) should call the AddressBook's list() method you created in previous exersise so you can see the newly created AddressEntry objects info.
IMPORTANT:: Use a constructor for AddressEntry that takes all of the read in data from an address to create an instance if you have not already created one.
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 5 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: you will be simply assess by rubric for it working fully, partially complete or no significant attempt. Remember this is peer group evaluated. So getting full score on this will not indicate if you have done well in these and other areas!!! As instructor I can take off points in your related project for these and other issues so be careful. This exercise is simply to get some level of functionality accomplished.