Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago