Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment: Weather Data Processing System

Objectives

The objectives of this homework assignment:

1. Familiarize with the use of arrays

a. Manipulate a collection of data values (objects) using an array
b. Compute statistics out of an array of values
c. Declare and use an array of reference data types

2. Familiarize with the use of exception handling for data format and range checking

3. Master the use of standard Java classes

a. How to find out what these classes are through the online Application Program Interface (API)
b. How to find out about the data members of these classes through the online API
c. How to find out how to use the methods of these classes through the online API

4. Understand the concept of object-oriented programming.

a. How one class uses another class elegantly!
b. Understand the concepts of object instantiation.

5. Familiarize with methods

a. How to use the results of one method in another method

6. Use existing classes

7. Familiarize with code documentation, compilation, and execution

8. Expose to Java syntax, programming styles, and Java classes

Problem Description

For this homework assignment, you are to create an application to process weather data. In order to do this, you will need to create a weather data class that stores the recorded weather data for a specific day at a specific location. You will use this class to create objects that you store in an array for the processing application. You will be required to get the data from a supplied data loading class and store the weather data objects for the entire year of 2008 at four locations in a single multi-dimensioned array. The weather data processed in the system should be stored in Java arrays. Note: You cannot use JCF classes or any standard classes to store the weather data objects.

You are given the following set of minimum requirements to design and implement the weather data class that stores the recorded weather data for a specific day at a specific location.

1. The class should be able to store the following attributes:

a. Location (String)
b. Date (Gregorian Calendar)
c. High Temp (Integer)
d. Low Temp (Integer)
e. Average Wind Speed (Integer)
f. Max Wind Gust (Integer)
g. Precipitation (Double)

2. All data values should have "get" and "set" methods for storing and accessing the data of the class.

3. This class should be able to nicely "print" itself.

You are given the following set of requirements to design and implement the overall weather data processing application.

1. First, your system will need to load the weather data from a supplied class called WeatherDataLoad.java into your array of objects. This class has all the individual data values for the High Temp, Low Temp, Average Wind, Max Wind, and Precipitation stored in order by location by date. You will need to review this class, understand how it works, and call its methods in order to load all of your Weather Data objects with the appropriate data. Data in the WeatherDataLoad.java class represent all of the weather data from 2008 for the following four towns/cities: Eagle, NE; New York, NY; Houston, TX; and LA, CA. The data is ordered for each attribute starting with Eagle, NE on January 1st, 2008. It has the full year of Eagle's data before it moves on to NY's data. NY's year of data is followed by Houston's data and all of the data ends with LA, CA on December 31st, 2008. Please keep in mind that 2008 was a leap year, so there is 29 days worth of values for February for each town/city.

2. You should store all of the weather data in a single three dimensioned array. This array will have an individual weather data record object for each day (up to 31) for each of the twelve months for each of the four cities. The weather data processed in the system should be stored in Java arrays. Note: You cannot use JCF classes or any standard classes to store the weather data objects. You are also expected to properly handle any exceptions that could be thrown during the processing of your array.

3. Once the data is loaded, then the user should have some options for processing the weather data. This should be a "menu" of choices for the user to choose from and the user should be able to continue to use the overall program until they decide to quit. You are also expected to properly handle any exceptions that could be thrown during the processing of user input/entry. The main menu will need to support the following features:

a. Weather Record: The user should be able to enter a date (MM/DD/2008) and see the weather record for all four locations for the specified date. Once selected, this option should repeat allowing the user to enter in another date.

b. Averages: The user should be able to select a data value (High Temp, Low Temp, Average Wind, Max Wind, and Precipitation) for which they want to see the averages printed for each month for each location. Once selected, this option should repeat allowing the user to enter in another data value. All resulting averaged values should be displayed to only four decimal places.

c. Maximums: The user should be able to select a data value (High Temp, Low Temp, Average Wind, Max Wind, and Precipitation) for which they want to see the maximum amounts printed for each month for each location. This option should repeat allowing the user to enter in another data value. If Precipitation is selected, the resulting values should be displayed to only two decimal places.

d. Minimums: The user should be able to select a data value (High Temp, Low Temp, Average Wind, Max Wind, and Precipitation) for which they want to see the minimum amounts printed for each month for each location. This option should repeat allowing the user to enter in another data value. If Precipitation is selected, the resulting values should be displayed to only two decimal places.

e. Total Precipitation: The user should be able to select a location and see the total rain fall for each month over the entire year. This option should repeat allowing the user to enter in another location. All resulting totaled values should be displayed to only two decimal places.

f. Extremes: The user should be able to select a location and see the extreme values for each of the following data values: show the highest High Temp recorded (and the date it occurred), the lowest Low Temp recorded (and the date it occurred), the highest Max Wind recorded (and the date it occurred), and the largest amount of Precipitation recorded (to two decimal places) (and the date it occurred) for the specified location. This option should repeat allowing the user to enter in another location.

4. All data values should have "get" and "set" methods for storing and accessing the data values of the class.

To do this, you need to program a Weather Processing System using solid object oriented programming methodologies.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92775248

Have any Question?


Related Questions in Computer Engineering

Jason who is very knowledgeable regarding computers agrees

Jason, who is very knowledgeable regarding computers, agrees to purchase computers for Nick's business. Jason is retained for that purpose only, he is paid a set rate for the job, and Nick exercised no control over the m ...

The system development team at the xyz company is working

The system development team at the XYZ Company is working on developing a new customer order entry system. In the process of designing the new system, the team has identified the following data entity attributes: Invento ...

Question suppose 4 packets of a message each of l bits

Question : Suppose 4 packets of a message, each of L bits arrive at a switch (router) and traverse a link with rate R bps to the destination. Further, suppose that the link is free when the first packet arrives, and the ...

In unix programming ordinarily the exec system call follows

In UNIX programming, ordinarily the exec() system call follows the fork() call. Explain what would happen if a programmer were to inadvertently place the call to exec() before the call to fork().

Statistics students participated in an experiment to test

Statistics students participated in an experiment to test the ability to determine when 1-minute (or 60 seconds) has passed. The results are given below in seconds. Find the range and standard deviation for the given sam ...

Sutures sutures are strands or fibers used to sew living

Sutures: Sutures are strands or fibers used to sew living tissue together after an injury or an operation. Packages of sutures must be sealed carefully before they are shipped to hospitals to prevent contamination. The p ...

Question suppose that during the playing of the

Question : Suppose that during the playing of the coins-in-a-line game that Alice's opponent, Bob, makes a choice that is suboptimal for him. Does this require that Alice recompute her table of remaining Mi,j values to p ...

Question 1 emergency operations- a major hurricane has

Question 1: Emergency operations - A major hurricane has struck the area where your company has its central data center. There are offsite backups and hardware at three other centers around the country. - Assume that the ...

Its almost election day and the election officials need a

It's almost election day and the election officials need a program to help tally election results. There are two candidates for office-Polly Tichen and Ernest Orator. The program's job is to take as input the number of v ...

Heights of women follow a normal distribution with

Heights of women follow a normal distribution with mean μ=63.6 inches and standard deviation of σ=2.5 inches.  Suppose random samples of 10 women are chosen and their mean height calculated. Please calculate the mean and ...

  • 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