Search code examples
calculatorcs193prpn

Stanford CS193p Assignment 2 - Entering variables into RPN calculator


I am currently teaching myself iPhone programming and working on solving assignment 2 [PDF] of this year Stanford CS193p course.

There's something I don't understand about Required Task 1. One is supposed to add variable support to RPN calculator so that it could be programmed. However, what is the presumed way for someone to use this feature? That is:

  • What sequence of calculator buttons should set a variable?
  • How should the user run a predefined calculator program with predefined values of variables?

Note that there is no "store" or "run" buttons in screenshot at page 5.


Solution

  • In this assignment, you can just run the variable-include program by using Test Buttons(Task 3). Maybe the follow assignment will require implementing the "set" and "run" function.