THIS IS HOMEWORK SO DONT COME UP WITH IMAGINARY DOLLARS!!!!!!
- To write applications that communicate with each other by sending datagrams.
Internet Infrastructure Foundation (Foundation II) handles the administration and operation of the Swedish domain name registry. Iowa. On their website [url removed, login to view] finds, among other statistics of various kinds. It may be the number of registered domain names that are registered in total and how many new domain name is registered per day. On their side of statistics includes a chart showing the number of domains created in the last 90 days and a data file containing this information.
[url removed, login to view]
You are writing an application that download this chart (a picture) from the website and view the graph on the screen. The application must also show how many new domain names that were created in total during this 90-day period and the date it was created the largest domain name. It should be possible to somehow update the screen (download chart again, and calculate the total number of domain, etc.). It will also indicate the time when this was last updated and timing data for the chart was updated (the data file last modified).
The date when the application last made an update (the user up to date) should be formatted as follows: 2008-04-21 18:16:33.
The date the graph was last updated / changed (data file last modified) should be formatted as follows: 2008-04-21.
You are free to choose how the plot and other information presented on the screen. However, the graph is displayed in their natural size. The diagram (picture) In other words, not reduced or enlarged. If the window width and / or height is less than the graph you should still be able to see the whole graph by using scroll bar / scrollbar.
Divide your code into the appropriate methods (and classes). The class with which to start the application you can rename to Uppgift1. Other classes baptize you into optional name.
When you're done, create a jar file of all the necessary files needed to run the application. Jar file naming you to uppgift1.jar.
You should write two applications that communicate with each other by sending datagrams to and fro. The first application (server) will listen for incoming datagrams (packets). When a package will be a string generated by the content. The string to be translated into backslang (I got the code for this.) to then be returned to sender.
The server will by default use port 10001, but it should be possible to specify a different port when the server starts. You may choose whether the server should have a graphical user interface or not and what information is displayed.
The second application (client) should have a graphical user interface. The interface should at least include the following:
A text field (Container) in which the user can enter the text to be sent to the server for translation to the robber language.
A button (JButton) which, when pressed on sending a package contents andes string of texfältet to the server.
A text box of some kind (such as JTextArea) in which the translated string (the response from the server) is printed.
When the client starts to be an argument to specify the address and port of packets to be sent. Does not specify any arguments to the application properly question the user the address and port to use.
Be careful not to allow the client to wait indefinitely for a response from the server. Obtained no response, the user must somehow be communicated accordingly.
Rename your classes to the optional name.
12 freelancere byder i gennemsnit $63 på dette job
I am a seasoned Java Developer in many platforms. We can establish a relationship and i can take you through some concepts you might find hard to understand alone.