السلام عليكم ورحمة الله وبركاته:
عندي ست بكرى وقاعدة احل مسائل و تعرضت لي مساله حاولت فيها بس يطلع لي خطا
فلو سمحتم اريد احد يشيك لي ع الحل .........
والمساله تقول...
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 user via cout. For example ,given the following data:
34.5 /38.5/42.4/46.8/51.3/63.1/60.2/55.9/60.3/56.7/50.3/42.2
File tempdata.dat would contain:
34.5
38.5 ................ 4.1
42.4 ................3.8
64.8 ................. 4.4
51.3.................. 4.5
63.1 .................. 11.8
60.2.................... -2.9
55.9 .................... -4.3
60.3 .................... 4.4
56.7.................. -3.6
50.3 ................. -6.4
42.2................. -8.1
