added check for divide by 0
added check for divide by 0

gregorymcdonald/cs345h-final-project,gregorymcdonald/cs345h-final-project,gregorymcdonald/cs345h-final-project,gregorymcdonald/cs345h-final-project,gregorymcdonald/cs345h-final-project