The way I built this is really simple. First I will ask the user to input 2 numbers (The numbers are a 'double' data type so it means that even decimals can be summed up), then I would ask the user to choose an operator (+, -, *, /, ^, %). The way the computer will know which operator has been used is really simple. As we know to represent a character we can use single quote symbols. Why? Simple, when we do that the computer knows what symbol it is by the binary number of that symbol. And using the if and else function we can make a simple but useful calculator.