Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Part 1: Object-Oriented Programming:

Class Day

1. Create a Java class called Day. The class should include three private fields for the year, month, and day.

2. Add setters and getters for the three private fields

3. Add a constructor that takes 3 arguments for: year, month, and day.

4. Add a public method called printDate(), which prints the date in the following format "MM/DD/YYY". Forexample, "02/18/2016"

Class DailyWeather

5.Create a second java class called DailyWeather. This class should extend Day.

6.Define a constructor that also takes 3 arguments: year, month, and day. Use the super(...) method to set thesevalues.

7.Add the following variables for the class DailyWeather:• maxTemp• minTemp• meanTemp• meanHumidity• maxWind• meanWind

8. Add setters and getters for all the variables above.

Part 2: File IO

1. Download the file "weather2015.txt". This file is a comma-delimited table that includes daily weatherinformation for the year 2015. The first line specifies the meaning of each column:

2. In a new Java class with a main method, create an ArrayList of type DailyWeather.

3. Read the file one line at a time, and for each day in the file, create a DailyWeather object with the valuesspecified in the file. When you are done reading the file, you should have 365 objects in your ArrayList.

4. Using a for loop, find which dailyWeather object has the highest meanTemp value. Print the datecorresponding to the hottest day in 2015. If there is more than one object with the same highest meanTempvalue, only print the first one.

5. Find and print the date corresponding to the most humid day in 2015

6. Find and print the date corresponding to the maximum wind speed (maxWind). What was the meantemperature in that day?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92092900
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Can someone please help me with this examthis is consists

can someone please help me with this exam This is consists of four questions. The questions are designed to test your understanding of certain concepts that were studied over the course of the semester. Please answer all ...

Select one of the discussion topics and respond begin your

Select one of the discussion topics and respond. Begin your response by indicating which question you chose. Discussion topics: Section 1 Can we distinguish between knowing someone in the sense of knowing the habits or t ...

Question list and describe two forms of organizational

Question: List and describe two forms of organizational change. How does organizational change create business innovation? Give an example. Reply substantively to two other learners with thought provoking statements and ...

In c languageread a double number as 2 digits after the

In C language: Read a double number as 2 digits after the decimal point. The number should have at least 6 digits BEFORE the decimal point. Extract all digits at even positions. Print them in reverse order. Extract all d ...

Systems analysis project 5can you answer the 4questions

Systems Analysis project 5: Can you answer the 4questions please. Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an internat ...

We just recently upgraded our user storage capacity storage

We just recently upgraded our user storage capacity Storage Area Network with a strategy for the next five years. Currently 800 users use about 60 Terabytes of storage, the new SAN was installed with about 180 TB to last ...

Question research microwave serices and report on what

Question : Research microwave serices and report on what kinds of applications can be supported, what equipment will be necessary, where the equipment will be located, and what services these companies that offers.

In thenbspworkspaceproject-lognbspdirectory create file

In the ~/workspace/project-log directory, create file named  changelog.txt  with the following content and format: Changelog Version: 1.0 Redirect the output of the ls command to a file named  file-list.txt  in the ~/wor ...

Question suppose you want to back up a huge file to a cd-r

Question : Suppose you want to back up a huge file to a CD-R. You can do this by splitting the file into smaller pieces and backup up those pieces separately. Write a utility program named FileSplitter that splits a larg ...

List the common development failures and errors that

List the common development failures and errors that results from poor software security efforts

  • 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