Create one more method to use the arrays class sort method

Assignment Help Computer Engineering
Reference no: EM131906927

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.

Reference no: EM131906927

Questions Cloud

Connective lies within the scope of a negation : Negate the statement and simplify so that no quantifier or connective lies within the scope of a negation: (?x)(?y)(P(x,y)?Q(x,y))
Write a cpp program in which you declare variables : Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours worked, and a withholding percentage.
How would bandura explain the causes of jasons behavior : Summarize the research of Albert Bandura and the Bobo Doll Experiment. How would Bandura explain the causes of Jason's behavior?
Prove the claim using a direct proof : Consider the claim: If m is an even integer, then m2+5m-1 is an odd integer. (a.) Prove the claim using a direct proof.
Create one more method to use the arrays class sort method : 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.
Find the height of the object after 5 seconds : If an object is projected upward with an initial velocity of 128ft per sec, its height h after t seconds is h= -16t^2 + 128t. Find the height of the object
How did colonialism affect this group of people : How did colonialism affect this group of people? What problem or challenges does this group people have to deal with in the modern world?
Find the negation of quantified statements : Translate prose with quantified statements to symbolic and find the negation of quantified statements.
Movie review of 12 years a slave : You need to do Movie review of 12 years a slave

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd