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
create a hotel reservation system in pseudocode.
user
function make_reservation
input: customer info, check-in, check-out dates

if hotel has available room 
  reserve customer a room 
  confirm reservation 
else 
  alert customer if no rooms are available 
end if 

return customer confirmation 
end function
assistant