The project is:
--------------------------------
Write a program that computes and prints the average of the numbers in a text file. You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design.
Create a text file and name as numbers.txt and add the following data:
45 66 88
100 22 98
--------------------------------
I know multiple ways to easily get the average, but I've been really confused as to how I should implement any higher-order functions into a code that would satisfy this project. Please help.