Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with problem 1. Provide a compiled source code. Problem 1. (50 points) Alice is going to create a notebook including the profile

image text in transcribedPlease help me with problem 1. Provide a compiled source code.

Problem 1. (50 points) 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 FriendsList, 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 FriendList 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 FriendList 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 MyFriends.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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

Students also viewed these Databases questions