calculator pseudo code