User inputs and logic

This is the part of the program than takes in user inputs and does a
series of logic checks to ensure that the math can be done correctly.