Write a program that reads in an array of type int . It provides facility to eit
ID: 3553881 • Letter: W
Question
Write a program that reads in an array of type int. It provides facility to either read an array from the keyboard or from a file, at the user's choice. If the user chooses file input, the program should request a file name. You may assume that there are fewer than 100 entries in this array. Your program determines how many entries there are. In addition, the program should also find the maximum number in the array and calculates the average of the array. You are required to use functions. (20 marks)