Question: 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

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 10.9 86 42 44 17 0 0740 1729 RA:16 BR:13 Write the code to read the date#, temperature max, temperature min, sunrise, and sunset data read into the variables below using a Scanner that you declare and construct. You may not use any other variables.

int dateNumber;

int temperatureMax;

int temperatureMin;

int sunrise;

int sunset;

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!