Write a program using dynamic arrays to record the high temperatures of last seven days and to display all of them with the average of high temperatures. Use
three buttons on the screen, one to enter the temperature, second to display the result and third to exit from program.