Skip to content

@m2mtech m2mtech released this Apr 22, 2017 · 9 commits to master since this release

Add the capability to your CalculatorBrain to allow the input of variables. Do so by
implementing the following API in your CalculatorBrain ...

func setOperand(variable named: String)

This must do exactly what you would imagine it would: it inputs a “variable” as the operand (e.g. setOperand(variable: “x”) would input a variable named x). Setting the operand to x and then performing the operation cos would mean cos(x) is in your CalculatorBrain.

https://cs193p.m2m.at/cs193p-assignment-2-task-3-winter-2017/

Assets 2
You can’t perform that action at this time.