EBK OBJECTS FIRST WITH JAVA
EBK OBJECTS FIRST WITH JAVA
6th Edition
ISBN: 8220102955318
Author: KOLLING
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 7, Problem 1E

Explanation of Solution

Given: The weblog-analyzer project with LogAnalyzer class, analyzeHourlyDataas well as printHourlyCounts methods.

To find: The busiest times of the day.

Solution:

The busiest times of the day is 18 as it has the maximum count which is 237.

Right click on the LogAnalyzer class and click on new LogAnalyzer() to create an object.

EBK OBJECTS FIRST WITH JAVA, Chapter 7, Problem 1E , additional homework tip  1

After that, a new box will pop out in which the user can rename the reference name of the object, then click on the ok button.

EBK OBJECTS FIRST WITH JAVA, Chapter 7, Problem 1E , additional homework tip  2

A new rectangular box will occur at the bottom of the BlueJ window.

EBK OBJECTS FIRST WITH JAVA, Chapter 7, Problem 1E , additional homework tip  3

After that, right click on the rectangular box, and then click on analyzeHourlyData() to invoke analyzeHourlyData method.

EBK OBJECTS FIRST WITH JAVA, Chapter 7, Problem 1E , additional homework tip  4

After that, click on the printHourlyCounts() to invoke the printHourlyCounts method.

EBK OBJECTS FIRST WITH JAVA, Chapter 7, Problem 1E , additional homework tip  5

After invoking the method, a new window will pop out where the user can analyse the busiest time of the day.

EBK OBJECTS FIRST WITH JAVA, Chapter 7, Problem 1E , additional homework tip  6

Hence, the busiest time of the day is 18.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Modify the GeometricObject class to implement the Comparable interface and define a static max method in the GeometricObject class for finding the larger of two GeometricObject objects. Draw the UML diagram and implement the new GeometricObject class. Write a test program that uses the max method to find the larger of two circles, the larger of two rectangles.using java programming
Improve the method printList to print out the details of all publications ordered on the category of the publications, and then on the title within each category. Note: currently there are only 2 categories, i.e. Book and Journal, but the project may be expended by adding other categories, e.g. Newspaper etc. Here are my four classes.   public class Database {private ArrayList<Publication> publicationList; // An array list collection of publications /*** Create a new database*/public Database() {publicationList = new ArrayList<Publication>();} /*** Add a publication** @param publication The publication to be added*/public void addPublication(Publication publication) {if (publicationList.contains(publication)) {System.out.println("This publication has already been added to the list: " + publication);} else {publicationList.add(publication);}} /*** Get the total number of publications** @return The total number of publications*/public int getTotal() {return…
Are there obvious improvements that could be made here with respect the software design for Squares and Circles? What programming constructs were you familiar with, and which did you need to look up? Assume we used a separate array for Squares and for Circles rather than one unifying Object array. How would this complicate the task of adding a new Shape (say, a Triangle) to our ObjectList class?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education