Difference between revisions of "CSC111 Final Exam 2015b"
(p) |
|||
Line 49: | Line 49: | ||
<br /> | <br /> | ||
Using the program above as inspiration, write a program that contains a recursive function call findMax(), and that gets a list from the user, as with the program above, computes and displays the largest element of the list. The list entered by the user may contain sub-lists, as illustrated above. | Using the program above as inspiration, write a program that contains a recursive function call findMax(), and that gets a list from the user, as with the program above, computes and displays the largest element of the list. The list entered by the user may contain sub-lists, as illustrated above. | ||
+ | <br /> | ||
+ | ==Additional Information== | ||
+ | <br /> | ||
+ | The list will contain only integers. The main list and the sublists will never be empty, and will always contain at least one integer. | ||
<br /> | <br /> | ||
==Restrictions== | ==Restrictions== |