1. Define a sumOfList / 2 predicate such that given a list Xs of numbers, sumOfList (Xs, Total) will bind Total to the sum of all the numbers in Xs.
a. Write a eclipse program using no iterators to do the job
b. Write a eclipse program using one or more of the iterators in Chpater 7 to do the job
2. Define a maximumOfList / 2 predicate such that given a list Xs of numbers, maximumOfList (Xs, Max) will bind Max to the maximal value in Xs.
a. Write a eclipse program using no iterators to do the job
b. Write a eclipse program using one or more of the iterators in Chpater 7 to do the job