Problem: Write a program that asks the user for a file name. Assume the filecont
ID: 3611321 • Letter: P
Question
Problem:Write a program that asks the user for a file name. Assume the filecontains a series of numbers, each written on a separate line. Theprogram should read the contents of the file into an array and thendisplay the following data:
- The lowest number in the array
- The highest number in the array
- The total of the numbers in the array
- The average of the numbers in the array
THANKS!