I like what you are doing here using if statements to filter user input, but the calculator method it too long - it makes the code hard to read. Break it down into smaller methods.