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();

}

}

6/5 Paper

  1. In this final assignment, you will be adding your recommendations for improving the information system’s infrastructure that you researched and completed in the Workshop Two summary of your organization’s mission, goals, and strategies and the Workshop Four organizational SWOT analysis.
  2. This last phase of the final project will be your recommendations based upon the SWOT analysis you conducted in Workshop Four.
  3. You should identify at least four improvements and provide a thorough explanation for each of your recommendations.
  4. Your final paper should include the following sections:
    1. Introduction
    2. Summary of the organization’s mission, goals, and strategies from the Workshop Two paper
    3. SWOT analysis from the Workshop Four paper
    4. Recommendations as noted for this section above
    5. Conclusion
    6. References
  5. The total length of the paper should be 10–15 pages. You may use graphics or other features within your paper; however, these do not count toward the 10–15 page total.
  6. Make sure your paper is double-spaced and uses APA format. The paper should have a minimum of five references.

Construction -9 Assg

 

Read chapter 10.
1. Give an example of an exception error that you encounter while running your program. 
2. How do you solve the exception?

____________________________________

federated architecture in cloud systems

 

Discuss in 500 words or more  federated architecture in cloud systems. Remember that this is a cloud class not a database class. 

Use at least three sources. Use the Research Databases available from the Danforth Library not Google. Include at least 3 quotes from your sources enclosed in quotation marks and cited in-line by reference to your reference list.  Example: “words you copied” (citation) These quotes should be one full sentence not altered or paraphrased. Cite your sources using APA format. Use the quotes in your paragaphs.  Stand alone quotes will not count toward the 3 required quotes.

computer science

  1- Implement a minimum spanning tree (MST) algorithm using C++. An MST (also minimum weight spanning tree) is a subset of the edges of a connected, edge-weighted, undirected graph that connects all the vertices together, without any cycles and with the minimum total edge weight. The program is interactive. Graph edges with respective weights are entered at the command line and results are displayed on the console. 

2. Each input transaction represents an undirected edge of a connected weighted graph. The edge consists of two unequal non-negative integers in the range 0 to 99 representing graph vertices that the edge connects. Each edge has an assigned weight. The edge weight is a positive integer in the range 1 to 99. The three integers on each input transaction are separated by space. An input transaction containing the string “end-of-file” signals the end of the graph edge input. After the edge information is read, the MST process begins. Use an array with a capacity of 100 for recording input edges. The input data can be assumed to be valid, so is no need to perform data validation on the input data. 

3. After the edges of the MST are determined, the MST edges are displayed on the console, one edge per output line, following the message: “Minimum spanning tree:”. Each output line representing an MST edge contains three integers separated by space. The first two integers are the two vertices representing the edge and the third integer represents the weight of the edge. 

After displaying the edges of the MST, the program displays the message: “Edge weight total:” followed by the sum of the weights from the edges comprising the MST. 

Note: the user must provide the input.

i will give you the example to test the code.

2 Sample input transactions are as follows: 1 3 5 3 2 6 1 2 7 end-of-file Sample output expected after processing the above input will be as follows: Minimum spanning tree: 1 3 5 3 2 6 Edge weight total: 11

this is the example

remember that the user must enter the values. The values that can be entered can be diffrenent

week-5

 Explain in your own words what  “FOOTPRINTING”   (or digital  reconnaissance)   is and how you would go about gathering the information you need to determine the location of a recently stolen late model car that was last seen in the parking lot of our college 

Tech

  Referencing the Learning Resources for this week, choose a different question from the previous discussion in the research project list and answer it in relation to an issue in philosophy and technology. 

  1. What is the problem for which this technology is the solution?
  2. Whose problem is it?
  3. Which people and what institutions might be most seriously harmed by a technological solution?
  4. What new problems might be created because we have solved this problem?
  5. What sort of people and institutions might acquire special economic and political power because of technological change?
  6. What changes in language are being enforced by new technologies, and what is being gained and lost by such changes?

https://aeon.co/essays/replicants-and-robots-what-can-the-ancient-greeks-teach-us

Understanding Heidegger on Technology