So these two find the highest number in a list or the lowest number in a list. The way they work is this: look at the first item in the list and make it the maximum, then look at every other item and see if it is more. Quite simple when you think of it like that.
Here is the pseudocode for finding max:


1.1 set the first item to be the maximum
1.2 for each item (starting with the second)
1.3 if the current item is more than the maximum
1.4 set the current item to be the maximum
1.5 end if
1.6 end loop
1.7 print out the maximum
Finding the minimum is exactly the same only change more than to read less than (and every maximum to minimum).
Powerpoint: