Question: 4. (10 points) Write a few lines of code that will read the following input using:a Scanner. You may want to test your solution using

 4. (10 points) Write a few lines of code that will

4. (10 points) Write a few lines of code that will read the following input using:a Scanner. You may want to test your solution using a program to be sure it is correct. Remember to pay careful attention to newline characters. The data below represents data collected by a weather station (taken from https://www1.ncdc.noaa.gov/pub/data/cdo/samples/LCD-sample.pdf.pdf date# temperature max, temperature min, temperature average, temperature Dep, temperature ARH, temperature ADP temperature, AWB temperature, degree days heat (base 65), degree days cool (base 65), sunrise, sunset, weather type. Example: 01 54 41 48.32 10.9 86 42 44 17 0 0740 1729 RA1 BR:1:3 Write the code to read the date temperature average and weather type read into the variables below using a Scanner that you declare and construct. You may not use any other variables. int dateNumber; String weatbertyee; Hint: The trick to working with things like this is to read in the data that you don't want too. You do not have to save it in variables, although you can if you wish. 4. (10 points) Write a few lines of code that will read the following input using:a Scanner. You may want to test your solution using a program to be sure it is correct. Remember to pay careful attention to newline characters. The data below represents data collected by a weather station (taken from https://www1.ncdc.noaa.gov/pub/data/cdo/samples/LCD-sample.pdf.pdf date# temperature max, temperature min, temperature average, temperature Dep, temperature ARH, temperature ADP temperature, AWB temperature, degree days heat (base 65), degree days cool (base 65), sunrise, sunset, weather type. Example: 01 54 41 48.32 10.9 86 42 44 17 0 0740 1729 RA1 BR:1:3 Write the code to read the date temperature average and weather type read into the variables below using a Scanner that you declare and construct. You may not use any other variables. int dateNumber; String weatbertyee; Hint: The trick to working with things like this is to read in the data that you don't want too. You do not have to save it in variables, although you can if you wish

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!