I want to make an android app that performs like a C++ commandline calculator.

I want the user to have to input 2 different values then choose the operation as add, subtract, multiply or divide, then perform the operation and give the result, also to be able to store the result for more of the same.