Calculator Version 2

Extend your Calculator Version 1 project by adding the decimal point ( . ), sin, cos, sqrt, Pi, and C (clear) buttons that Prof. Hagerty explains in his Assignment #1.

Preconditions:

  • none

Sample Test Case:

  • inputs and outputs where outputs are typed in square brackets

    Pi, Enter, cos, Enter, [-1], C, Pi, Enter, sin, Enter, [0], C, 9, Enter, sqrt, Enter, [3], C, 2, ., 3, Enter, 1, ., 4, Enter, +, [3.7]

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.