Build an ATM machine

I am building an ATM machine. I am just a little confused on the recursion part and if this is even right altogether.