Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

For this project, download the text file weblog.txt (Links to an external site.)Links to an external site.

Note: To download this file, right click on the link and select SAVE AS.

This file is an Apache web log taken from the web server for St. Mary's University. When a visitor goes to their web site, the visitor's browser makes a request to the web server to view a web page, which is a file residing on the server. Each time a page is requested by a browser, the web server records information about that request. This weblog.txt holds the details of some of those requests. See below for a list of fields with an example:

Web Log Example (Links to an external site.)Links to an external site.

This file does not include all possible information that could be collected by a web server.

For this project, you can use each line of the web log file as one string. An array of size 2990 will hold all of the lines in this file.

Minimum Requirements:

• Create a separate class called weblogger that contains the following: (4 points). Note:This class should be separate and apart from the public class that holds the main method. You can either make a class that is not a public class in the same file or you could make it public and put it in a separate .java file:

• Create a method to read each line of the web log file. (4 points)

• Each line should then be stored in a private array created in the class, such that the first element of the array is the first line of the web log file. Because each element will hold an entire line from the file, the array should be declared as an array of strings. Do use an ArrayList, you must use an array(4 points).

• Create one more method to use the Arrays class sort method to sort the contents of the array and write the contents of the array to a file. The contents of the new file should look like the original input file once your program completes, but in sorted order (4 points). Do not write your own sort function, use the Arrays cass sort method instead.

• In the primary class for your package, create a main method that creates an instance of the weblogger class and calls all of your methods. If you would like to create a graphical user interface (GUI) using Swing or JavaFX, the primary class for your package should handle all of the code necessary for the GUI. Add the code to create an object of the weblogger class and call its methods where appropriate for your GUI.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92745597

Have any Question?


Related Questions in Computer Engineering

One of the issues in early virtualization use was slow

One of the issues in early virtualization use was slow performance due to translation of system commands. Which piece of computer hardware was revised to run hypervisors natively? Also There are three "families" of opera ...

Question a with respect to huffman coding devise a formula

Question : (a) With respect to Huffman Coding, devise a formula to compute the average compression based on the number of characters in a piece of text, n, and the number of unique characters in its alphabet, m. (b) Does ...

The police lieutenant in charge of the traffic division

The police lieutenant in charge of the traffic division reviews the number of traffic citations issued by each of the police officers in his division. He finds that the mean number of citations written by each officer is ...

Question find an article on the www that discusses a recent

Question: Find an article on the WWW that discusses a recent (within the last 2 years) security breach or Cyberattack. Provide a link to the article and suggest 2 Best practices for a user Domain Policy that would mitiga ...

Security and network discussion questionsa discuss the pros

Security and Network Discussion Questions a) Discuss the pros and cons of an organization regularly engaging in penetration testing. b) What are the motivations of the ethical hacker?

Question after you have analyzed the existing material used

Question: After you have analyzed the existing material used by the company for their day-to-day duties, the current Access database, and the additional requirements that the current system does not meet, the following r ...

Qion leadership paradox and inter-team relationsa

Question: Leadership Paradox and Inter-team Relations A. What is the leadership paradox? Give some reasons why a leader can encounter difficulty in newly formed teams or groups using a participative management system. Su ...

1 explain why fukayama thinks we are at the end of history

1. Explain why Fukayama thinks we are at the "end of history". How do you respond to his contention? 2. Explain what information a Lorenz curve gives you. How is this information summarized by a Gini coefficient. 3. Expl ...

A monochromatic source emitting photons at 250 nm shines

A monochromatic source emitting photons at 250 nm shines with equal intensity on a zinc electrode (threshold n =1.04 x1015 Hz) and a sodium electrode (threshold n = 5.51 x1014 Hz). Which of the following statements is tr ...

Question a student study 0 1 2 or 3 hours for a math 307

Question : A student study 0, 1, 2, or 3 hours for a MATH 307 test on any given day. Use the tree diagram to find the total number of ways in which the student can study at most 4 hours for the test on two consecutive da ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As