The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Ok. I need some help with a Java program code that i need to write for my class. Here is the problem:
Using classes, design an online address book to keep track of the names, addresses, phone numbers, and birthdays of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries.
A. Define the class Address that can store a street address, city, state, and ZIP code. Use appropriate methods to print and store the address. Also, use constructors to automatically initialize the data members.
B. Define the class AddressBook using previously defined classes. An object of the type AddressBook should be able to process a maximum of 500 entries.
The program should perform the the following operations:
-Load the data into the address book from a text file.
-Sort the address book by last name.
-Search for a person by last name.
-Print the address,phone number,and date of birth of a given person.
-Print the names of the people whose birthdays are in a given month or between two given dates.
-Print the names of all the people between two last names.
So thats the questions. Now this has to be in Java syntax. If you seek further intstructions, this is problem 6 on page 740 of Java Programming: Program Design Including Data Structures by D.S.Malik. Thank you for your assistance and if you have any other quetions, please ask. Thanks.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll