Question: Please write this in Java, and answer the following questions after! Thank You! The popular social network Facebook TM was founded by Mark Zuckerberg and
Please write this in Java, and answer the following questions after! Thank You!
The popular social network Facebook TM was founded by Mark Zuckerberg and his classmates at Harvard University in 2004. At the time, he was a sophomore studying computer science.
Design and implement an application that maintains the data for a simple social network. Each person in the network should have a profile that contains the persons name, an image(Optional), 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.
1) Use at least a hash table or a dictionary.
2) You need at least 2 data structures: One for profiles and one for the list of the friends of those profiles
3) You need to implement CRUD (In computer 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.
4) You need to have a class diagram for your program. (Paper or web is fine) Thank you!
Questions after code:
1) What data structures did you use in your code and why?
2) Show me in your code where you used these data structures and where you created objects of their classes? (Please explain in reference to the code)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
