Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management 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?

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92084770
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Business Management

What tenets of the auburn creed would be attractive

What tenets of the Auburn Creed would be attractive characteristics for skills that a company would need in the future and which tenets are not current?

How could advertising be a barrier to entry could

How could advertising be a barrier to entry? Could advertising reduce barriers to entry for a new product?  Presumably drug companies are trying to differentiate their products  from the competition. Will consumers be be ...

Max has a utility function ux y 16x - 2x 2 4y the prices

Max has a utility function u(x, y) = 16x - 2x 2 + 4y. The prices of x and y are both px and py. Max has an income m. How much of each good will he demand? Find the algebraic expression for the marginal rate of substituti ...

Summarize the steps for market screening and techniques for

Summarize the steps for market screening and techniques for environmental analysis.

When it comes to creating a shared vision how many people

When it comes to creating a shared vision, how many people do you think should be involved, and what factors go into that decision?

Discuss the advantages of having and interacting in a

Discuss the advantages of having and interacting in a diverse workplace. Consider the wide range of ideas and perspectives that a range of team members bring to a team, that are of differing ages, ethnic backgrounds and ...

What are the differences between the classic marx approach

What are the differences between the classic Marx approach to capitalist globalization and the "world systems theory"?

When can the government terminate a contract for

When can the Government terminate a contract for convenience and how is the process of termination conducted?

Is there any difference in terms of the information that

Is there any difference in terms of the information that could be provided to the decision maker by an IS that was created using HSM and an IS that was created using SSM?

For this response consider the space shuttle challenger

For this response, consider the Space Shuttle Challenger case and address the following questions: Did Morton-Thiokol use a Stockholder or a Stakeholder model when they made the decision? What decision would you have mad ...

  • 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