Question: c++ pls Topics covered : Array, CString, Input/Output Files, Functions Given input and output files as follows: InFile.txt 1 2 3.2 150 5.4 202 -2.3
c++ pls

Topics covered : Array, CString, Input/Output Files, Functions Given input and output files as follows: InFile.txt 1 2 3.2 150 5.4 202 -2.3 443 7.5 226 -1.3 100 7.3 305 6.1 248 -5.4 112 1.7 576 2.2 649 -4.3 231 3.1 344 7 8 9 10 11 12 Outfile.txt Month Average Temperature Total Rain Jan Feb Mac Apr May Jun Jul Aug Sep Oct Nov Dis 3.2 Celcius 5.4 Celcius -2.3 Celcius 7.5 Celcius -1.3 Celcius 7.3 Celcius 6.1 Celcius -5.4 Celcius 1.7 Celcius 2.2 Celcius -4.3 Celcius 3.1 Celcius 150 mm 202 mm 443 mm 226 mm 100 mm 305 mm 248 mm 112 mm 576 mm 649 mm 231 mm 344 mm Highest Total Rain is in Oct : 649 mm Lowest Total Rain is in May : 100 mm There are 2 months which Average Temperature more than 6 Celcius There are 4 months which negative Average Temperature Write a complete program that read 12 data set for month (int), average_temperature (double) and total_rain (int) from input file, then produce an output file. The program should be able to do the following tasks: i) Get the name of the month that have highest and lowest of total_rain together the values. ii) Get the number of months with average_temperature greater than 6 Celcius iii) Get the number of months with negative average_temperature Your program should have at least Two (2) user/programmer defined functions to do above tasks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
