Question: Hi, I'm new to Java OOP, and cannot figure out a simple program involving classes and objects. 1. Design a class called person. Each person

Hi, I'm new to Java OOP, and cannot figure out a simple program involving classes and objects.

1. Design a class called person. Each person should have the following:

- name ( first and last )

- Address (Street, Postal Code)

- Phone Number (xxx-xxx-xxxx)

- Email (xxx@xxx)

Create constructors for the class

2. For the same program, design a mini database that can store people's information. The program will display a menu for the user similar to the one shown below:

1. Add a person

2. Remove a person

3. Quit

The program should have an array of people (max 10). When to user selects 1, the program will ask for the necessary information and add the person to the list. When the user selects 2, the program will ask for the name of the person to be deleted and then removes the person from the list.

** Add an option 4 to sort by lastname

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!