Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using basic java from CS 210, Write a menu driven program that will perform the following options: Load Data: request user for filename that contains

Using basic java from CS 210, Write a menu driven program that will perform the following options: Load Data: request user for filename that contains Bellevue College Weather Station Data (Links to an external site.) Links to an external site (http://scidiv.bellevuecollege.edu/weather/Bellevue/Current_Vantage_Pro_Plus.htm). (10 minute data format); report if the filename does not exist; report if the file is not in the 10 minute data format [**** As announced in class on Feb 26: if the first line of the file matches the below sample file first line, then the file will be considered in the proper 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.

-SAMPLE of data file (https://bc.instructure.com/courses/1736535/files/111664767/download?download_frd=1)

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_2

Step: 3

blur-text-image_3

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions