Explore BrainMass

Explore BrainMass

    C++ Program

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write an interactive C++ program whose input is a series of 12 temperatures from the user.

    It should write out on file "tempdate.dat" each temperature as well as the differences between the current temperature and the one preceding it, and the average of input temperatures. Since there is no preceding temperature for the first input, you can either not output the difference for the first temperature that is input, or consider this difference as 0.

    At the end of the program, display the average temperature for the user via "cout".

    Please do not use any of "if", "for" or "while" statements in the solution.

    © BrainMass Inc. brainmass.com March 4, 2021, 10:34 pm ad1c9bdddf

    Solution Summary

    The expert examines an interactive C++ program to read in temperatures.