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

  How many students in the iclassroster file are in it program

Determine how many students in the iclassroster file are in the IT program. Determine how many students in the iclassroster file are seniors in the IT program.

  Write a program which takes two digits

Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. The element value in the i-th row and j-th column of the array should be i * j

  Questionboolean calculator two continue solution program

questionboolean calculator two continue solution program from the preceding exercise by implementing following

  Program to calculate area and perimeter of rectangle

Write down a program which asks for length L and the width W of a rectangle, then the computer perimeter and area of rectangle.

  Creating flowchart and pseudocode utilizing control breaks

Generate a Flowchart and Pseudocode utilizing the Control Breaks for Xhemrock is a brake pad manufacturing company. This company utilizing the raw materials like carbon powder, ash, iron, and resin.

  What type of data does put-line display

What procedure must you call at the end of the loop to use an End_Of_File loop with numeric data? What type of data does Put_Line display?

  Define the terms precision and reliability

Sample Evaluation. Gloria Bush has performed a sampling plan to estimate the number of children per household in her neighborhood.

  Implement recursive merge sort for an array of n integers

Implement recursive Merge sort for an array of N integers, using an auxiliary array of size less than N /2.

  What bandwidth is available for the dma controller

A processor executes 1000K instructions per second. The bus system allows a bandwidth of 5 MB per second. Assume that each installation requires on average.

  Create a memo for the sales meeting as shown

Create a memo for the sales meeting as shown in Figure 1, using the following format. The sales figures should be in Currency cell style with no decimal places.

  Design appropriate it infrastructures to manage data

In the unlikely event of any discrepancy between the Academic Regulations and any other publication, including this module guide, the Academic Regulations, as the definitive document, take precedence over all other publications and will be applied..

  Write a function to roll an image sideways

What is vector-based image? How does it differ from bitmapped image? When is it better to use a vector-based image? Write a function to roll an image sideways.

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