Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribedCCode 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

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

=+ c. a company president deciding whether to open a new factory

Answered: 1 week ago