Error checking in scanner input

Added try-catch statement to GettingAnswersByScanner to prevent
incorrect inputs, and also removed an extra input statement that was
unnecessary.