Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 3: Allow input of variables to CalculatorBrain #1

Closed
petervanhoef opened this issue Apr 19, 2017 · 1 comment
Closed

Task 3: Allow input of variables to CalculatorBrain #1

petervanhoef opened this issue Apr 19, 2017 · 1 comment
Labels

Comments

@petervanhoef
Copy link
Owner

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.

@petervanhoef
Copy link
Owner Author

This task will be implemented together with task 4 (see #2), as it can't be tested standalone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant