function running_total(readings):

   total = 0
   for value in readings:
      total = total + value
   return total
 # input: readings (what the procedure receives)
 # state: total (what changes along the way)

 # output: the final total (what it produces)
