The weather station project – Grade 11
This Java project is similar to the grade 10 project but a much higher level of sophistication is required – in how the four text files are read in for example. The grade 11 version uses 4 arrays which the grade 10 version does not.
How to create a weather station application that reads in temperature, wind speed, rain, and cloud cover from 4 different text files and then calculates the average value for each (this application would be part of a bigger project) The average value is reported to output GUI. The grade 11 version also determines the minimum and maximum value in each text file. This application uses the Scanner class to read the data from the text files.
The application has a welcome GUI with four action buttons that allows the user to specify – temperature or wind or rain or cloud cover.
Relevant images are also used to complement the look and feel of the project.
Part one. Creating and placing the text files.
Part two. Preparing the GUIs to accept an image
Part three. How to layer the image into the GUI
Part four. Coding the while loop to read in the values from one of the text files
Part five. The new welcome UI screen and menu.
Part six. Grade 11 version – 4 arrays and one manager class. Passing parameters etc