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
develop an algorithm for calculating the average of two numbers.
user
the following algorithm can be used to calculate the average of two numbers: 

step 1: get two numbers from the user.

step 2: add the two numbers together.

step 3: divide the sum by two to get the average.

step 4: display the average.
assistant