Question: Write a menu driven program in java using array method that will perform the following options: in java program Load Data: request user for filename
Write a menu driven program in java using array method that will perform the following options: in java program Load Data: request user for filename that contains Bellevue College Weather Station Data . (10 minute data format); report if the filename does not exist; report if the file is not in the 10 minute data format; with a good file, load file data. Exit: quit program. The following options will display only after a good data file has been provided. Peak Wind Speed: display maximum Hi Speed of the recorded Wind data. Maximum Temperature: display the value, date and time of the highest recorded temperature. If there are ties; display value, date and time info for all occurrences. Humidity and Temperature: compute the average outside temperature when the outside humidity is at or higher than a humidity percentage input by the user. Request this humidity cutoff value from the user and confirm the input is between 1 to 100 percent, inclusive. Do not output results if the cutoff value input is outside this range. Solar Energy: compute and display the total Solar Energy [do not use the Solar Energy column in the file; units unknown] during the duration of the data file. Solar Energy = Solar Radiation * time; the units of the equation are: Wh/m^2 = W/m^2 * h, ( NOTE: h=hour). General Specifications - The data file will have a maximum of 288 lines of data; could have fewer. - The data file will end with a complete line of data. (do not need to check for partial data lines) Preview the document - Display all numeric values rounded to nearest tenth.
Sample data file: 2019-02-10.txt = below content but its has more then 300 line of data;
Temp Hi Low Out Dew Wind Wind Wind Hi Hi Wind Heat THW THSW Rain Solar Solar Hi Solar UV UV Hi Heat Cool In In In In Wind Wind ISS Arc.
Date Time Out Temp Temp Hum Pt. Speed Dir Run Speed Dir Chill Index Index Index Bar Rain Rate Rad. Energy Rad. Index Dose UV D-D D-D Temp Hum Dew Heat ET Samp Tx Recept Int.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2/10/19 12:10a 24.8 24.9 24.8 86 21.2 2.0 ESE 0.33 4.0 ESE 23.1 24.6 22.9 19.2 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.279 0.000 65.2 22 25.4 60.3 0.000 235 1 100.0 10
2/10/19 12:20a 24.9 24.9 24.9 85 21.0 2.0 ESE 0.33 3.0 E 23.2 24.7 23.0 19.3 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.278 0.000 65.2 22 25.4 60.3 0.000 234 1 100.0 10
2/10/19 12:30a 25.0 25.2 24.9 84 20.8 2.0 ESE 0.33 5.0 SE 23.3 24.8 23.1 19.4 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.278 0.000 65.2 22 25.4 60.3 0.000 232 1 100.0 10
2/10/19 12:40a 25.2 25.2 25.1 83 20.8 2.0 ESE 0.33 4.0 ESE 23.5 25.0 23.3 19.6 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.276 0.000 65.2 22 25.4 60.3 0.000 234 1 100.0 10
2/10/19 12:50a 25.1 25.2 25.1 84 20.9 3.0 ESE 0.50 5.0 ESE 21.5 24.9 21.3 17.6 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.277 0.000 65.2 22 25.4 60.3 0.000 233 1 100.0 10
2/10/19 1:00a 25.2 25.3 25.1 83 20.8 3.0 ESE 0.50 5.0 ESE 21.6 25.0 21.4 17.7 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.276 0.000 65.2 22 25.4 60.3 0.000 233 1 100.0 10
2/10/19 1:10a 25.2 25.2 25.2 84 21.0 3.0 ESE 0.50 5.0 ESE 21.6 25.0 21.4 17.7 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.276 0.000 65.2 22 25.4 60.3 0.000 234 1 100.0 10
2/10/19 1:20a 25.2 25.3 25.2 83 20.8 3.0 ESE 0.50 5.0 E 21.6 25.0 21.4 17.7 1010.4 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.276 0.000 65.2 22 25.4 60.3 0.000 201 1 88.2 10
2/10/19 1:30a 25.1 25.2 25.0 84 20.9 3.0 ESE 0.50 5.0 ESE 21.5 24.9 21.3 17.6 1010.7 0.00 0.00 0 0.00 0 0.0 0.00 0.0 0.277 0.000 65.2 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
