Question: Write a menu driven program that will perform the following options: in java program Load Data: request user for filename that contains Bellevue College Weather

Write a menu driven program that will perform the following options: in java program

  • Load Data: request user for filename that contains Bellevue College Weather Station Data (Links to an external site.)Links to an external site. (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) Sample data file: 2019-02-10.txtWrite a menu driven program that will perform the following options: in - Display all numeric values rounded to nearest tenth.

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!