as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
construct an algorithm to find the largest number in a given array of numbers.
user
algorithm 'find largest number in array': 
1. set 'largest' to the first item in the array. 
2. iterate through the array, and for each item: 
   a. if the item is larger than 'largest', set 'largest' to the item. 
3. return the value of 'largest'.
assistant