Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need all classes to be solve in java program ..use the last page as text file to solve the question Problem 1: Address Book

I need all classes to be solve in java program ..use the last page as text file to solve the question image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Problem 1: Address Book Using classes and inheritance, design an online address book to keep track of the names, addresses, phone numbers and birthdays of family members, friends and business associates. Your program should be able to handle a maximum of 500 entries Define the following classes: Class Address to store a street name, city, state and zip code. .Class Date to store the day, month and year. .Class Person to store a person's last name and first name Class ExtPerson that extends the class Person and uses the classes Address and Date to store the person's address and date of birth. The class ExtPerson also stores the phone number and the person's status (e.g., family, friend or business). Class AddressBook to store a list of all your contacts' information using the ExtPerson class. Hint: Use an array of ExtPerson objects). The program should perform the following operations: Load the data into the address book from an input file. A sample input is given to you in the file "data.txt" Search for a person by last name. Print the information of a given person. Print the names of the persons whose birthdays are in a given month. Print the names of the persons with a particular status, eg. family, friend, business. Sort the address book by last name in ascending order. For all the above classes: Define the appropriate constructors to construct the objects and initialize the data members Define the toString() methods to print the appropriate information. Define the appropriate methods to perform the needed operations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the key decisions in physical database design?

Answered: 1 week ago

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago