Mr. Kahuna Banana is a monkey who is lost and wants to go home. The bad news is that he only remembers part of the coordinates of where he lives; the good news is that he's not just an ordinary monkey; he's a code monkey!

Mr. Kahuna Banana
Mr. Kahuna Banana has three pieces of information that will give him the coordinates to his home:
- His home coordinates are at N 40° 56.ABC W 074° 04.DEF
- A computer program he once wrote will give him the missing parts of the coordinates (see program below).
- Entering his first name, KAHUNA, as the input to the program, will return the values of the missing coordinate parts, with the letters of KAHUNA corresponding to ABCDEF above.
The program is as follows:
****************
List myInputTrackingList;
//! Convert an alphabet character to a coordinate value. Each input character is stored in
//! myInputTrackingList and is converted to the correct coordinate value.
Procedure ConvertCharacterToCoordinateValue (Input inputChar) Returns Integer
Integer result;
Integer inputValue;
Integer listSize;
//! Add letter passed in as input to a list
myInputTrackingList.Add(inputChar);
//! Convert the input character to its numerical equivalent, e.g. A=1, Z=26
inputValue = CharacterToValue(inputChar);
//! Store the size of the list
listSize = myInputTrackingList.NumItemsOnList();
//! Perform an operation based on the input character or input value
if (myInputTrackingList.IsCharInListMoreThanOnce(inputChar)) then
-->result = listSize;
else if (inputValue <= 4) then
-->result = 5*inputValue + 2;
else if (inputValue <= 8) then
-->result = inputValue;
else if (inputValue <= 12) then
-->result = inputValue – 3;
else if (inputValue <= 16) then
-->//! Return the listSize’th prime number (e.g. 1st=2, 2nd=3, 3rd=5, etc)
-->Integer prime = GetPrimeNumber(listSize);
-->result = inputValue – prime;
else
-->//! No other conditions match
-->result = inputValue.LastDigit() * 2;
end if
return result;
End Procedure
****************
Can YOU find the geocache? If you solve the puzzle and have no intention of finding the cache, write a note and comment on the puzzle itself!
Per the rules of geocaching, a Found It log must correspond to a signed logbook.
You can check your answers for this puzzle on GeoChecker.com.
BONUS: the cache container will have written in it a note with part of the coordinate for the puzzle series bonus cache, of the form LETTER=COORDINATE PIECE. Save these pieces of the bonus coordinate for use in geocache GC3T0ZY.
Happy caching!
Congratulations to biga800 for FTF!