Question: Please help thank you! C++ Language The program will process the data, and display the results and write the results to a file called yourName.txt.
Please help thank you! C++ Language
The program will process the data, and display the results and write the results to a file called yourName.txt. Main should only have stream declarations and limited variable declarations and function calls. Requirements: The program will use an array of structures for the solution. The input file could have up to 20 sets of data, but it could be less. The program will handle this fact. The program must populate the array of structures. The array of structures must be passed to the output function. The program will handle file failure conditions and close the files when finished. The program will read the data from the data file weatherData.txt. The program will produce the output to the console window and to a file yourName.txt. The file streams cannot be declared global and must be passed as stream objects to the functions that need them. (page 665). Output Formatting for display and file writing: 1. The output header will appear only once as shown below. 2. The output data in the columns should be right justified with one decimal place and the units. 3. The output when wind chill cannot be computed should be *** 4. The invalid input text should appear only once as shown when needed. Sample Screen Capture. The file output should be the same. CSE 111 Lab #3 Weather Program (array of structures and File I/O) Test Input data create a text file with the data below weatherData.txt and use the test input file to test against the output shown above. The input data order is temperature, wind speed, dew point. 6 6 0 65 18 47 27 8 5 35 7 12 10 6 7 48 2 23 43 6 40 47 6 34 48 1 35 12 4 11 88 3 82 9.1 6 6
Test Input data create a text file with the data below weatherData.txt and use the test input file to test against the output shown above. The input data order is temperature, wind speed, dew point. 6 6 0 65 18 47 27 8 5 35 7 12 10 6 7 48 2 23 43 6 40 47 6 34 48 1 35 12 4 11 88 3 82 9.1 6 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
