You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Add the capability to your
CalculatorBrain
to allow the input of variables. Do so byimplementing 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 namedx
). Setting the operand tox
and then performing the operationcos
would meancos(x)
is in yourCalculatorBrain
.The text was updated successfully, but these errors were encountered: