Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need this example java code. 1. (100pts) In this exercise you will simulate the behavior of the social network, LinkedIn. LinkedIn consists of user
I need this example java code.
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: IV. V. 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: L. 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. Broadcast a message to all users. Users will print the message received. Add a user with a given ID to another user's network. If the user exists post a waming. (Hint: you will send the object and the User dass shall add it.) Remove a user from another user's network. (If user does not exist, post a warning) d) Users can perform the following operations: Add a given User to its own network (if user is already in the network, post a warning). Remove a given User from the network. 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. VI. 1. III. 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: IV. V. 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: L. 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. Broadcast a message to all users. Users will print the message received. Add a user with a given ID to another user's network. If the user exists post a waming. (Hint: you will send the object and the User dass shall add it.) Remove a user from another user's network. (If user does not exist, post a warning) d) Users can perform the following operations: Add a given User to its own network (if user is already in the network, post a warning). Remove a given User from the network. 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. VI. 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started