Read a count and then that many numbers into an array. Print the total on the first line and the largest value on the second.
Write two methods — one for the total, one for the largest — and call them from main.
For 3 then 3 5 7:
15
7
Careful with all-negative input: start the search from the first element, not from 0.