Question: Project Five The Temperature Statistics Problem Write a program to produce the statistics for temperatures stored in a file. The centigrade temperatures in the file
Project Five The Temperature Statistics Problem Write a program to produce the statistics for temperatures stored in a file. The centigrade temperatures in the file are the monthly averages for 12 months (lanuary to December) in Cuba. Here is a sample displaying the required report: Temperature Statistics in Centigrade 25.22 Average Temperature High Temperature: August 278 Low Temperature: January 222 Temperature Statistics in Fahrenheit 739 Average Temperature High Temperature. August 8204 Low Temperature: January 71.96 Part I main Driver TempDriver main should follow this sequence: 1. Declare an array of 12 doubles. 2. Declare a string with a value like this. it is the path where the temp.dat file is stored String filePath "temp.dat" This temp.dat file is included with the assignment. Download and save the file on a storage device. You may need to change the drive designation in the string, depending on where you store the file. Windows 10 requires that a file be in a folder so this may be the path: c:folderi temp.dat Mac Users (file path) Use the forward slash to separate directories instead of the back slash. . Enter something like this if the file is on the desktop: Users/Name/Desktop/temp.dat The directory name and file name are case sensitive so you must use a capital letter where applicable. Nome in the path will vary depending on your computer hp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
