Question: code in c++, need some assistance on how to complete. thank you. Convert Lab #2 (wind chill factor and cloud base) to read the input

code in c++, need some assistance on how to complete. thank you.

Convert Lab #2 (wind chill factor and cloud base) to read the input data from a file called weatherData.txt and store it in an array of structures. 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

code in c++, need some assistance on how to complete. thank you.

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

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!