Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. (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 TypeStep 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