Question: Tell the user what this program does. ( process temperatures in a file and report statistics about them ) Ask the user to provide the

Tell the user what this program does. (process temperatures in a file and report statistics about them)
Ask the user to provide the name of the file using a Scanner170
and connect to the file for reading with another Scanner170.
Create an array that can hold 100 Cesius objects, then pass the file Scanner170 and the array to method readTemperatureFile; it
will return the number of valid temperatures found in the file.
Call method printTemperatureData, passing in the name of the file, the array of Celsius temperature objects, and the number of valid temperatures found in the file.

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 Programming Questions!