programming exercise 3

refer to the attached documents in the uploads for details and guidelines.

First attachment is the actual exercise and second one is the modified one. So work and program as per second one and also follow the guidelines as mentioned in first one  as well. Please read and follow both the attachments carefully.

Bullying

Human service professionals are expected by the NOHS Ethical Standards to advocate for social justice. In this project, you will be researching contemporary social justice issues and choosing one as a focus on your project. After describing the issue and its impact on the affected population, you will create a plan of advocacy to eradicate the issue.

create an array list using the knowledge you have of how to build a doubly linked list(Array list is DDL based). Use provided files in addition to your files from previous work.

*UPDATE ASSIGNMENT ; Posted yesterday, but assignment due date is extended* 

*DUE DATE: APRIL 13th, 2021 @ 10:00PM EST**

      Your arraylist should be named AList.java      

      The arraylist will be tested with an object called Person (see attached) and integers.       

      The txt files show expected output with unaltered list testers.      

database

Following Week 3 Assignment you’ve created an ERD for the given problem statement, the next step is to create the database ( Data Insertion and Table creation) based on your ERD.

This is the second pass – it doesn’t have to be perfect.  The goal here is to think like an analyst or consultant – you must ensure that you understand the underlying business logic that drives the intended/expected functionality.  

Note: You are to design the database and write the SQL statements (code only). You are not to try to execute the statements .

Cloud-based Home Security System

Need to design a  Cloud-based Home Security System which should satisfy the below conditions

1. Must use AWS IoT core

2. Must support at least 1 or preferably 2 home security devices

3. Must use MQTT or other standard protocols to communicate with the cloud IoT core.

4. Must support multiple homes and require authentication.

5. The User can access the system using a website or app. The user can enter phone number to call or text in case of an intrusion.

6. The user chooses system’s action upon detecting a possible intrusion. 

7. Must work with real hardware devices (for example, camera or door sensor).

Virtual Business in Global Marketing

  1. Locate two sources concerning geopolitical risks in global supply chains to provide you with background information to answer the key questions below. Cite sources as applicable.
  2. Write an initial response to the following key question(s) or prompt(s):
    1. What are two to three main geopolitical risks of global supply chains?
    2. What are potential mitigations for the identified geopolitical risks?
  3. Balance is a condition in which different elements are equal or in the correct proportions. The key to achieving a culture of balance at work is first recognizing that balance is different for each and every employee and that it’s always changing.

Need at least 4 references and at least 500 words

Network Lab 1…..

 Please download the attached lab instructions and complete all the tasks. You will need to download Packet Tracer in order to complete these tasks. You need to turn in both Packet Tracer and the completed document. You will loose points if both attachments are not submitted. 

PYTHON PROGRAM RELATED TO INFORMATION RETRIEVAL AND WEB SEARCH

 

 

Problem 1  Automatically collect from memphis.edu 10,000 
unique documents. The documents should be proper after converting them to txt
(>50 valid tokens after saved as text); only collect .html, .txt, and and .pdf
web files and then convert them to text - make sure you do not keep any of
the presentation tags such as html tags. You may use third party tools to
convert the original files to text. Your output should be a set of 10,000 text
files (not html, txt, or pdf docs) of at least 50 textual tokens each. You must
write your own code to collect the documents - DO NOT use an existing or third party crawlercrawler.

Store for each proper file the original URL as you will need it later
when displaying the results to the user.

Problem 2  Preprocess all the files using assignment #4( "python program that preprocesses a 
collection of documents using the recommendations given in the
Text Operations lecture. The input to the program will be a directory
containing a list of (10000 unique documents)text files collected in above program.  documents must be converted to text before using them.

Remove the following during the preprocessing:
- digits
- punctuation
- stop words (use the generic list available at ...ir-websearch/papers/english.stopwords.txt)
- urls and other html-like strings
- uppercases
- morphological variations).)" This directory should have index terms( inverted
index of a set of already preprocessed files.Use raw term frequency (tf) in the document without normalizing it. Think about saving the generated index, including the document frequency (df), in a file so that you can retrieve it later) .Save all preprocessed documents in a single directory . 

Server programs are rarely

  

Server programs are rarely implemented as non-threaded applications, even though that is how you implemented your previous server application. Servers would not be able to provide the necessary throughput unless they used threading to allow for I/O to occur concurrently with servicing client requests. For this Assignment, you will modify your finger server program from Week 6 to use threads. 

Modify your finger server program to use threads. The server should activate a new thread to process each incoming client request, thus allowing client requests to be processed concurrently.

FingerServer.java:

import java.io.*;

import java.net.ServerSocket;

import java.net.Socket;

public class FingerServer {

public static void main(String[] args) throws IOException {

ServerSocket serverSocket = new ServerSocket(79);

System.out.println(“The Finger Server is now ready!”);

while (true) { Socket socket = serverSocket.accept();

System.out.println(“Accepted an echo request”);

System.out.println(“… local socket address ” + socket.getLocalSocketAddress());

System.out.println(“… remote socket address ” + socket.getRemoteSocketAddress());

BufferedReader input = new BufferedReader(new InputStreamReader(socket.getInputStream()));

PrintWriter output = new PrintWriter(socket.getOutputStream());

String line; while (true) { line = input.readLine(); if (line == null) break;

System.out.println(“Client said: ” + line);

output.write(“Message from server: ” + line);

output.flush(); }

socket.close();

}

}

}

FingerClient.java:

import java.io.IOException;

import java.io.InputStream;

import java.io.OutputStream;

import java.net.Socket;

public class FingerClient {

public static void main(String[] args) throws IOException {

int b;

if(args.length < 2) {

System.out.println(“Provide ip address and message through command line”);

return;

} Socket socket = new Socket(args[0], 79);

InputStream input = socket.getInputStream();

OutputStream output = socket.getOutputStream();

System.out.println(“The socket is connected the server.”);

System.out.println(“… local socket address is ” + socket.getLocalSocketAddress());

System.out.println(“… remote socket address is ” + socket.getRemoteSocketAddress());

output.write(args[1].getBytes());

socket.shutdownOutput();

while (true) { b = input.read();

if (b == -1) { break; } System.out.print((char) b);

}

System.out.println();

socket.close();

}

}