Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
6th Edition
ISBN: 9780134477367
Author: David J. Barnes, Michael 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.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), 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.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  2

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

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), 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.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), Chapter 7, Problem 1E , additional homework tip  4

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

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), 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.

Objects First with Java: A Practical Introduction Using BlueJ (6th Edition), 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
What is the value of performing exploratory data analysis in designing data visualizations? What are some examples?
Draw a level-0 diagram for this scenario: You are developing a new customer relationship management system for the BEC store, which rents out movies to customers. Customers will provide comments on new products, and request rental extensions and new products, each of which will be stored into the system and used by the manager for purchasing movies, extra copies, etc. Each month, one employee of BEC will select their favorite movie pick of that week, which will be stored in the system. The actual inventory information will be stored in the Entertainment Tracker system, and would be retrieved by this new system as and when necessary.
Draw a context diagram for this scenario: You are developing a new customer relationship Management system for the BEC store, which rents out movies to customers. Customers will provide comments on new products, and request rental extensions and new products, each of which will be stored into the system and used by the manager for purchasing movies, extra copies, etc. Each month, one employee of BEC will select their favorite movie pick of that week, which will be stored in. the system. The actual inventory information will be stored in the Entertainment Tracker system, and would be retrieved by this new system as and when necessary.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage