Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

How do the different types of firewalls work?

Answered: 1 week ago