C++ Data Programming

In this assignment, you will use a temperature data of various cities in the world. The dataset is given in “tempData.txt” file, in which each line begins with a city name and continues with 12 temperature values for each month (from January to December). You will write a C++ program that reads temperature data from the file and calculates the average temperature for each city in file. Finally, calculated average values with corresponding city names will be printed on the screen as well as written into the “output.txt” file. Please note that in this assignment, you do not have to use arrays. If you like you can use it, but it is not necessary. A sample output of the program will be:On the top of your source code, please add your name and number, Course ID, HW number and the date using a comment block. Please see the example below,Please do not copy your code from someone else’s program. The instructor may use a code comparison program that automatically checks the similarity between different programs. And do not hesitate to contact me if you are having trouble with the homework. I will be more than happy to help you to solve your problem.

Calculate Price

Price (USD)