Calculator Version 1

Create the Calculator project that Prof. Hagerty models in his first few lectures and iOS 5 Walkthrough. Be sure to implement the buttons for numbers 0 through 9, addition, subtraction, multiplication and division as well as the Enter button.

Preconditions:

  • none

Sample Test Case:

  • inputs and outputs where outputs are typed in square brackets

    3, Enter, 4, Enter, +, [7], 5, Enter, -, [2], 9, Enter, *, [18], 3, Enter, /, [6]

 

You must hand in the following papers stapled in this specified order:

  1. CalculatorBrain.m
  2. CalculatorBrain.h
  3. CalculatorViewController.m
  4. CalculatorViewController.h

Turn in the project folder by copying it to your network HandIn folder.

Also, call the instructor to your computer and execute the program for him for a run-time grade.