Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Java Please... Alice is going to create a notebook including the profile of all her friends. For each of her friends, she would like

Use Java Please...

image text in transcribed

Alice is going to create a notebook including the profile of all her friends. For each of her friends, she would like to keep first-name, last-name, cell number, and birthdate (month and day). At the beginning, she doesn't know how many spaces she should reserve for recording her friends, so she gradually inputs her friends' information into it. Please help her by first creating a Java class, called Person, with the required information from description above, along with any required setter/getter methods. (10 points) Then create, a Java class, called Friends List, that keeps the list of some persons as someone's friends, using the Person class above, and performs the required operations, such as add new friends, delete/ modify an existing one, return the list of her friends sorted by last-names, report the number of her friends, report the list of her friends who born in a given month sorted by their day of birth, and report the list of her friends who born in a given day of a month, sorted by their last-names. She also needs to get the cell number of a friend by giving her/his first-name and last-name. (25 points) Create a tester class, called MyFriends, to test the Friend List class by creating a new object of this class, adding some friends, modifying and deleting some existing friends, retrieving and printing all friends, retrieving and printing the list of friends who born in a given month, retrieving and printing the list of friends who born in a given day of a month, and finding the cell number of an existing friend by giving her/his first-name and last-name. Also, create a separate copy of the Friend List object you have already created, and remove all friends with first-name "Shane" from the new object. (15 points) Java file names: Person.Java, FriendList.java, and My Friends.java

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

Recommended Textbook for

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions

Question

log 6 610 X O A 5 O B 60 O C 30 OD 5 10 {5} {60} {30}

Answered: 1 week ago

Question

assess the infl uence of national culture on the workplace

Answered: 1 week ago