Lisp Lab
Due March 21rst
To Do:
Write a lisp program that takes a list of integer values and finds the highest
summation adding consecutive numbers in the list.
For example if your list is
-2, 4, -3, 5, -3, 1, -2, 3
Your answer would be 6
-2, 4, -3, 5, -3, 1, -2, 3
The answer might be one element, some elements like above, or all the elements.
Your program should give the highest sum.
More points goes to program where the output includes the sublist that was added together.
More points go to programs that can handle all the atoms in lists that have lists in the lists such as:
(-2, 4, (5, -6), 3, 6, 1)
This list would read:
(-2, 4, -1, 3, 6, 1)