result variables and printing to user and console

result variables and printing the results to the user via alerts and to
the console.