Question: please help me with this question quikly programming language java 2 waiting.... Question 1 Implement the below interface and classes except the class Network Device

please help me with this question quikly
programming language java 2
waiting....
Question 1 Implement the below interface and classes except the class Network Device which you can assume its code exists when you need to call it : > Similar +ixSimilaryo:Objectboolean Device DataCenter -name: String - nbDevices: int - devices: Devicell Data Center (name: String, maxNbDevices:int) +getDevices:Device) +addDeviced: Device): boolean displayServers):void +toString):String #din brand: String +Device(all arguments) +toString) String Network Device Server operating System Type: String available Services: String -nbOfPorts: int -powerOver Ethernet:boolean + Network Device all arguments) +oStringo: String //getters and setters Server (all arguments) HoString): String +addService service String> boolean +findAServierservice String): boolean Wigetters and setters A. Device Class (An Abstract Class) The toString method returns a String of the form "Id: Brand: B. Server Class It has two private attributes: operating System Type: the type of the installed operating system (ex: Linux Windows, etc) availableServices: it is a string that contains all the installed services. It is of the following form: : Servicel:Service2:Service3. Example: DHCP:DNS: MailService:WebService The method addAService takes the name of the new service and adds it at the end of the string availableServices, if it does not already exist. It returns false if the service is already installed, and true otherwise, The method findAService takes the name of a service and returns true if it is installed on this server, and false otherwise. The method isSimilar should be implemented in this class. It is used to compare two servers. Two servers are similar if they have the same brand, same operating system type and same installed services. The toString method returns a string with the following format: Server: Id:123. Brand: Lenove, Operating System: Windows Services: DHCP, DNS, Mail . C. Data Center Class The data field Devices keeps tracking the number of devices added to the devices array The constructor accepts an int parameter maxNbDevices which indicates the maximum number of Device Objects that could be added to the devices array The method addDevice takes a Device Object and adds it to the array only if no similar object is present in the array. You should use the isSimilar method to check if two objects are similar The method Display Servers displays information of Server Objects found in devices array. The toString method returns a String containing information about all the Device Objects in the devices Array Question 2: Write a driver class (application) that: 1. Creates a DuraCenter object with a maximum number of 12 Devices. 2- Adds two network devices and 10 Server objects. Add only three services for each server. Information about these objects should be entered by the user 3. Displays information about all the Servers having a Windows operating system 4- Prompts the user to enter the name of a service and displays the number of servers on which this service is installed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
