Question: CCode must be in Java. I have 70 minutes. Please help. 1. (100pts) In this exercise you will simulate the behavior of the social network,

CCode must be in Java. I have 70 minutes. Please help. 1.CCode must be in Java. I have 70 minutes. Please help.

1. (100pts) In this exercise you will simulate the behavior of the social network, LinkedIn. LinkedIn consists of user accounts, which is one of two types: Employer and Jobseeker. Your task is to implement two Abstract Data Type's, one corresponding to LinkedIn and the other one for users. LinkedIn's primary purpose is to keep record of its users and support data communications among them. Your program should support the following: a) Each User has a name, id, type (employer or jobseeker) and a network of other Users. (i.e., a list) b) LinkedIn has its own list to store ALL the User accounts using the site. c) Linkedin performs the following operations: 1. Add a new User with a given ID. II. Remove a User with a given ID. Do not forget to remove user from the list. III. Send a message to User with a given ID. Users will print the message received. IV. Broadcast a message to all users. Users will print the message received. V. Add a user with a given ID to another user's network. If the user exists post a warning. (Hint: you will send the object and the User class shall add it.) VI. Remove a user from another user's network. (If user does not exist, post a warning) d) Users can perform the following operations: 1. Add a given User to its own network (If user is already in the network, post a warning). II. Remove a given User from the network. III. Receives messages. e) Encapsulate the ADTs in a package. f) Write a main, a separate java file, for testing your ADT's. You must apply the knowledge we have discussed in the lectures in designing the Abstract Data Type

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!