Question: 2 Weather 30 marks This will be your first problem where you need to deal with several classes. This is your first larger problem to

 2 Weather 30 marks This will be your first problem where

2 Weather 30 marks This will be your first problem where you need to deal with several classes. This is your first larger problem to solve and it can be overwhelming if you try to sit down and solve the it in one go. Before starting to code, be sure to read through all the provided classes that you will use (and not make). Read through the BuildDatabase program to understand how to use these other provided classes. Do ONE thing at a time. You wi implement a simple weather database. The database will store several weather stations and allow for basic queries about the data. Each weather station keeps some records of the weather (at the location of the sti. A weather record consists of the temperature at a given time You are provided with some classes that you must NOT change: Compare, Scale, TimeStamp and WeatherReport. You will need to use your Temererature class from the previous problem in this proble. You must complete the methods in the WeatherDatabase and WeatherStation classes. The API is specified as javadoc comments in the .java files. You must decide how to store the state needed for the objects of these classes. Add any attributes and helper methods that you need. Keep in mind that we will only test your code by calling the methods that you are asked to complete. You are NOT allowed to use any external classes unless they are in java.lang or comp1406a2. There is a BuildDatabase program also ncluded in the comp1406a2 package. This program will build a s database consisting of three weather stations that each hold some uber of weather reports. Read through this code to see the classes/objects in use. You can use this class as a starting point for testing your classes. 2 Weather 30 marks This will be your first problem where you need to deal with several classes. This is your first larger problem to solve and it can be overwhelming if you try to sit down and solve the it in one go. Before starting to code, be sure to read through all the provided classes that you will use (and not make). Read through the BuildDatabase program to understand how to use these other provided classes. Do ONE thing at a time. You wi implement a simple weather database. The database will store several weather stations and allow for basic queries about the data. Each weather station keeps some records of the weather (at the location of the sti. A weather record consists of the temperature at a given time You are provided with some classes that you must NOT change: Compare, Scale, TimeStamp and WeatherReport. You will need to use your Temererature class from the previous problem in this proble. You must complete the methods in the WeatherDatabase and WeatherStation classes. The API is specified as javadoc comments in the .java files. You must decide how to store the state needed for the objects of these classes. Add any attributes and helper methods that you need. Keep in mind that we will only test your code by calling the methods that you are asked to complete. You are NOT allowed to use any external classes unless they are in java.lang or comp1406a2. There is a BuildDatabase program also ncluded in the comp1406a2 package. This program will build a s database consisting of three weather stations that each hold some uber of weather reports. Read through this code to see the classes/objects in use. You can use this class as a starting point for testing your classes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!