Question: Can you write simple classes (IN JAVA) for a social network using two data structures preferably arraylist, linked list, queues, stacks, or dictionary? One for
Can you write simple classes (IN JAVA) for a social network using two data structures preferably arraylist, linked list, queues, stacks, or dictionary? One for profiles and one for the list of the friends of those profiles.
Here are the detailed instructions:
Design and implement an application that maintains the data for a simple social network (like Facebook). Each person in the network should have a profile that contains the persons name, an image(extra credit), current status(Online, offline, busy,...), and a list of friends. Your application should allow a user to join the network, leave the network, create a profile, modify the profile, search for other profiles, and add and remove friends.
- You can use any data structure you have learned and wrote so far.
- DO NOT IMPORT ANY JAVA, C++ or PYTHON LIBRARY! Use your own data structures which you wrote.
- You need at least 2 data structures: One for profiles and one for the list of the friends of those profiles.
- You need to implement CRUD (Incomputer programming,create, read, update, and delete(CRUD) are the four basic functions):
- C= Create: Add profile- Add friends
- R= Read: Read the information of a profile - Search for other profiles
- U= Update: Update and edit the profile - Update the friend list
- D= Delete: Delete a profile - Delete a friend of a profile.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
