Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please help me with project below to write code in Java by using basic building blocks (i.e. for and while loops, file processing

Can someone please help me with project below to write code in Java by using basic building blocks (i.e. for and while loops, file processing concepts, program logic and indefinite loops etc.) ? A super advance solution including multiple arrays etc won't work since this is an assignment for a Java intro class. Thanks for your help!

Weather Station Write a menu driven program that will perform the following options:

Load Data: request user for filename that contains Weather Station Data (Links below) (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.txt

Preview the document - Display all numeric values rounded to nearest tenth.

Sample data file and external links are:

I am having most trouble beginning the FILE PROCESSING, if you could please use a place holder as to where I need to insert the file path that would be very helpful.

image text in transcribedimage text in transcribedimage text in transcribed

/04/19 22a20a 32-4 32. 32.4 34 7.1 2.D 0.33 7.0 D.0 0.0o 00 0.225 0.000 .22. 62.3 .000 232 100.0 10 0.0 0.80 0.0 .226 0.000 67.7 D.0 0.00 0. 0.227 .000 .77 23 62.5 0.000 234 100.0 10 25 0.19 2.6 0-151-oD0 72. 4 20.2 67.7 .DDO 2301 /04/19 1220p 44 44.7725 10.S 3 2/04 / 19 12.s0p 44. 45.0 44.4 25 11.1 4.1 ngE 0.67 12.0 ESZ 42.9 42 . 9 41.0 S.) 10200.0- .00 $67 3/04/19 1:10p 45.5 46.0 44.9 24 10.7 2.1 BSPg 0.33 7.0 2/04 / 19 1s20P 45 .6 44.2 45 . 2 25 11.7 3.1 gE .50 10.0 14.7 4.7 42 .. s4.6 1022.7 0.0 .00 S23 . 0.06 0.9 0.137 -0D0 73.24 21. 9.2.0D0 232100.0 10 J/04/192:50p 45 .3 45.5 45.1 26 12.4 5. SE 6.83 11. 42.7 43.4 40.8 49.1 1022 .40.0 6.00 322 3/04/19 3.10p 45 . 1 45.1 45 . 0 26 12.2 4.9 J/04/193:10P 45 . 2 45 . 2 45 . 1 2? 1J.1 4.1 ng .67 10.0 43.3 43.4 41.s 40.1 1022.40.0 .00 263 3/04/19 9:30p 36.4 36.6 36.3 35 11.3 1.1 .17 5. 36.4 35.1 35.1 30.6 1022.30.0 .00 /04719 9140p 36-3 6.3 6.0 0-1740 3/04/19 10:10p 35.6 35.8 35.5 37 11.9 1.1 0.17 2.0 3/04/19 10.10p 35 ,2 35 . 4 35.1 38 12.1 1.0 gSR .17 2.0 RS 35.2 34.0 34.0 29.6 1021.8 0.0 ,00 3/04 / 19 10:30p 34.7 34.8 34.5 40 12.8 0.9 ESE 0.00 1.0 E8E 34.7 33.6 33.6 29.2 1021.6 0.0 .00 3/04/1, 10:50p jj. 34.2 33.6 42 11.2 1.1 J/04/1911:10p 33.3 33.6 33'1 44 13,7 1.9 8E .17 3.0 88 33.3 32.3 32.3 27.9 1021.6 0,0 .00 3/04/15 11:30P 32.6 J2.6 J2.s 45 13.6 1.0 51 a.17 2.0 32.6 31.6 31.6 27,2 1021 . 20-00 0.00 D.0 0.00 . 0.225 0.000 70.3 20.4 5.4 0.000 233 100.0 10 D.0 0.00 . 0.232 0.000 .621.4 64. 0.000 234 100.0 10 .0 0.0 0. .236 .000 9-6 16 21.4 64.6 .000 234 1000 10 D.0 0.00 0. 0.239 0.000 .421.2 64.4 0.000 232 100.0 10 D.0 0.0o 00 0.240 0.000 .21.1 4..00 23100.0 10 D.0 0.00 0. 0.240 0.000 .321.2 64.3 0.000 232 100.0 10 D.0 0.00 0.0 0.239 .000 .2 64.3 000 2341 0.0 0.0 0. .243 .000 9.3 6 21. 643 .000 233 D.9 0.06 0. 0.190 .000 71. 22.3 67.1 0.000 235 100.0 10 /04/19 22a20a 32-4 32. 32.4 34 7.1 2.D 0.33 7.0 D.0 0.0o 00 0.225 0.000 .22. 62.3 .000 232 100.0 10 0.0 0.80 0.0 .226 0.000 67.7 D.0 0.00 0. 0.227 .000 .77 23 62.5 0.000 234 100.0 10 25 0.19 2.6 0-151-oD0 72. 4 20.2 67.7 .DDO 2301 /04/19 1220p 44 44.7725 10.S 3 2/04 / 19 12.s0p 44. 45.0 44.4 25 11.1 4.1 ngE 0.67 12.0 ESZ 42.9 42 . 9 41.0 S.) 10200.0- .00 $67 3/04/19 1:10p 45.5 46.0 44.9 24 10.7 2.1 BSPg 0.33 7.0 2/04 / 19 1s20P 45 .6 44.2 45 . 2 25 11.7 3.1 gE .50 10.0 14.7 4.7 42 .. s4.6 1022.7 0.0 .00 S23 . 0.06 0.9 0.137 -0D0 73.24 21. 9.2.0D0 232100.0 10 J/04/192:50p 45 .3 45.5 45.1 26 12.4 5. SE 6.83 11. 42.7 43.4 40.8 49.1 1022 .40.0 6.00 322 3/04/19 3.10p 45 . 1 45.1 45 . 0 26 12.2 4.9 J/04/193:10P 45 . 2 45 . 2 45 . 1 2? 1J.1 4.1 ng .67 10.0 43.3 43.4 41.s 40.1 1022.40.0 .00 263 3/04/19 9:30p 36.4 36.6 36.3 35 11.3 1.1 .17 5. 36.4 35.1 35.1 30.6 1022.30.0 .00 /04719 9140p 36-3 6.3 6.0 0-1740 3/04/19 10:10p 35.6 35.8 35.5 37 11.9 1.1 0.17 2.0 3/04/19 10.10p 35 ,2 35 . 4 35.1 38 12.1 1.0 gSR .17 2.0 RS 35.2 34.0 34.0 29.6 1021.8 0.0 ,00 3/04 / 19 10:30p 34.7 34.8 34.5 40 12.8 0.9 ESE 0.00 1.0 E8E 34.7 33.6 33.6 29.2 1021.6 0.0 .00 3/04/1, 10:50p jj. 34.2 33.6 42 11.2 1.1 J/04/1911:10p 33.3 33.6 33'1 44 13,7 1.9 8E .17 3.0 88 33.3 32.3 32.3 27.9 1021.6 0,0 .00 3/04/15 11:30P 32.6 J2.6 J2.s 45 13.6 1.0 51 a.17 2.0 32.6 31.6 31.6 27,2 1021 . 20-00 0.00 D.0 0.00 . 0.225 0.000 70.3 20.4 5.4 0.000 233 100.0 10 D.0 0.00 . 0.232 0.000 .621.4 64. 0.000 234 100.0 10 .0 0.0 0. .236 .000 9-6 16 21.4 64.6 .000 234 1000 10 D.0 0.00 0. 0.239 0.000 .421.2 64.4 0.000 232 100.0 10 D.0 0.0o 00 0.240 0.000 .21.1 4..00 23100.0 10 D.0 0.00 0. 0.240 0.000 .321.2 64.3 0.000 232 100.0 10 D.0 0.00 0.0 0.239 .000 .2 64.3 000 2341 0.0 0.0 0. .243 .000 9.3 6 21. 643 .000 233 D.9 0.06 0. 0.190 .000 71. 22.3 67.1 0.000 235 100.0 10

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

Step: 3

blur-text-image

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

11. Explain what dreams are, why we have them, and what they mean.

Answered: 1 week ago