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 Scanner
and connect to the file for reading with another Scanner
Create an array that can hold Cesius objects, then pass the file Scanner 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
