Java Coding Problem
Write a program that maintains an Address book of people. The address book should hold the names, addresses, and telephone numbers. The information should be stored in a text file.
Requirements of the program:
1) You should create a class for a Person
It should have the following fields
First Name (string)
Last Name (string)
Street Address (string)
State (string)
Zip (integer)
Telephone Number in the format: xxx-xxx-xxxx (string)
Accessors and Mutators for each of the fields
2) You should use an array of Person objects within the program.
3) You should provide a menu to the user:
Add a person
Delete a person
Modify a person
Print one person
Print all people
Write all elements to the text file
BONUS OPTION
Exit
4) Transactions on the address book:
You should be able to enter a person
You should be able to delete a person
You should be able to modify a person
This element should ask for the phone number of the person to be modified
Then implement a binary search method to search for the person to be modified. The person’s telephone number should be the search key, and
initially you can assume that the numbers are unique. The method should
ask what field to be modified, then modify the field.- Print the information for one element of the address book to the screen in a formatted manner. You should implement a sequential search (NOT BINARY SEARCH) to find the person to be printed. The person’s name should be the search key. First_Name Last_Name Street Address State, Zip Telephone number
- Print all elements of the address book to the screen in the same format as part d.
- The information for your address book should be stored in a text file named addresses.txt. You should write a person array to the file one element at a time.
- 1) A screencast URL using Jing that contains the following:
- Scroll through all of your source code slow enough to read.
- The source code compiling
- The source code running using the methodology for testing found below
- 2) The source code
- 3) The addresses.txt file