Question: Java (Please Help) Weather Application. You must use the HW6_WeatherApplication project as a template. Your application should display the weather for the entire week (includingweekdays

Java (Please Help)

Weather Application. You must use the HW6_WeatherApplication project as a template. Your application should display the weather for the entire week (includingweekdays and weekends). The user will have two options of how to display the daily weather (hightemp, low temp and forecast). The first option will be to have the user select the specific day (via but-tons or combo box). The second option will be to have the user select to show the entire week with theweather for all days being shown at the same time. All weather forecasts should include the use of agraphical component (either images or graphical components) for Sun, Clouds, Snow, Rain, and Wind.You are also to provide a button to the user to display weather statistics. When this button is selected,you are to compute and display the average daily high temperature, average daily low temperature, anda pie or bar chart to represent the number (bar) or percentage (pie) of days for Sun, Clouds, Snow, Rain,or Wind.

HW6 WeatherApp with XML, JDBC and JavaFX For this homework, you are to create a JavaFX Application to display a weekly weather forecast andrelated statistics. This assignment gives you an opportunity to experience using XML, Java DatabaseConnectivity, and basic graphical user interface and graphics capabilities of JavaFX.Weather Application. You must use the HW6_WeatherApplication project that is posted toCANVAS as a template. Your application should display the weather for the entire week (includingweekdays and weekends). The user will have two options of how to display the daily weather (hightemp, low temp and forecast). The first option will be to have the user select the specific day (via but-tons or combo box). The second option will be to have the user select to show the entire week with theweather for all days being shown at the same time. All weather forecasts should include the use of agraphical component (either images or graphical components) for Sun, Clouds, Snow, Rain, and Wind.You are also to provide a button to the user to display weather statistics. When this button is selected,you are to compute and display the average daily high temperature, average daily low temperature, anda pie or bar chart to represent the number (bar) or percentage (pie) of days for Sun, Clouds, Snow, Rain,or Wind.

(1) XML The weather information that you will use shall be input to your application via an XML file,named Weather.xml. The information contained in the XML file must match that specifiedin the following Document Type Definition (DTD):

Sample Weather.dtd and Weather.xml files are included in the project template. You canmodify the Weather.xml file that is included in the project template for testing purposes. Usingthe required values for name and forecast, change the expected forecast, high and low temperaturesfor each day. You need to ensure that EACH weekday has been represented and EACH type offorecast is represented in the updated file. Do not change the name of the file.This template includes the code for reading the weekday name (Sunday, Monday, Tuesday,Wednesday, Thursday, Friday, Saturday), the forecast (Sun, Clouds, Rain, Snow, Wind), the hightemperature and low temperature from the XML file and storing this information into an array ofWeatherRecord objects.

(2) JDBC. After reading the information from the XML file, you will need to store the weather infor-mation in a MS Access Database for later processing. Please refer to the Stu-dent_XML_JDBC_App project for additional information about saving information to a MS Ac-cess database.

(3) Event-Handling for Displaying Weather. Once the weather information has been read from anXML file and stored to a MS Access Database, you are ready to handle input from a user. You willneed to delete the event handler and timer animation contained in lines 48-57 of the WeatherAppClass as the display will now be modified based on user selections. You need to create your ownevent handlers based on the GUI components that you utilize. You will need to update the code in the drawGraphics() method of the WeatherPane class to draw the weather information. Feelfree to add or remove parameters or create a new method, based on your design in displaying thedaily or weekly forecast information. The drawing area is 500 x 500 pixels and is limited to thefollowing coordinates (x.y), (0,0) in the upper left corner to (500, 500) in the lower right corner. You are to modify the existing code and add additional code to each of the case statements withinthe switch structure that is located in the drawGraphics() method of the WeatherPaneclass. Your application must include the use of multiple JavaFX Shapes (to include Line,Rectangle, Circle, Ellipse, Arc, Polygon, Polyline, etc.). You are al-lowed to use the Java FX Image or ImageView class to display the weather forecast graph-ic only. The daily weather displayed should contain multiple colors. You should use the Text ob-ject to display the weekday name, high temperature and low temperature information that is storedin the input parameter of the drawGraphics() method.

(4) Statistics. You have the option of reading the information from the database or using the array ofobjects for your computations. You are to compute and display the average daily high temperature,average daily low temperature, and a pie or bar chart with legends to represent the number (bar) orpercentage (pie) of days for Sun, Clouds, Snow, Rain, or Wind. You will need to determine wheth-er you want to reuse the current WeatherPane to display the statistics, or if you want to create anew Pane in your application and add this to the scene to be used specifically for displaying the sta-tistics.

(5) Your grade for this project will be based on correct modification of the XML file, display of infor-mation as represented in the XML file, writing information to the database, correct calculation anddisplay of statistics, and creativity and the use of various colors and JavaFX graphical compo-nents.

I did some of the GUI but I do not know how to do the other parts. Please help

Here is download link to my project:

http://www.fileconvoy.com/dfl.php?id=g375d95f72c8c48c6999821066baec7d4fe03211a9

Thanks

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!