Write your question here.
Write an interactive C++ program that inputs a series of 12 temperatures from the user. It should write out on file "tempdata.dat" each temperature and the difference between the current temperature and the one preceding it. The difference is not output for the first temperature that is input. At the end of the program, the average temperature should be displayed for the use via cout. For example, given the following input data:
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
The only question you asked was "Can someone help me?"
Yes, someone can help you, but you have to specify with what. All you did was post a problem description and a bunch of code. You did not specify what you're having problems with. We're not mind readers. Are you having problems compiling your code? If so, post the compiler error messages. Does your code compile, but not work as expected? If so, what is it doing or not doing?