Create a program that will get 7 days of temperature values from the user and then save these values in a file. You will use a loop to get the temperature input. Be sure your program handles exceptions. You will then, create another program that reads the values in the temperature data file created in the previous program. The program will display each temperature value in the file and calculate and display the average temperature.

Q&A Education