Need help with this programming problem in C++. Any help is appreciated. File we
ID: 3720278 • Letter: N
Question
Need help with this programming problem in C++. Any help is appreciated.
File weather.txt contains some unknown number of lines of weather data using the following format. Some fields are of fixed width and others are free format. All entries are from the same month. You may assume data is valid and the file is not empty. The program should work for any valid file with similar format of data Column 1: Width 15 Column 2:Width 15 Column 3: Width 10 Column 4 Width 10 Column 5: No width Column 6: No width Column 7: No width Contains a town name Contains a date in the form: mm/dd/yy Contains a double wind speed value in units of m/sec Contains a wind direction N ESW Contains a double temperature Contains a temperature scale code F (Fahrenheit) or C (Celsius) Contains a nameExplanation / Answer
Hope it helps. Thank you.