Created
January 4, 2016 00:14
-
-
Save iheartkode/664e5bf0a366136f7c47 to your computer and use it in GitHub Desktop.
4 function calc spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a practice specification of a 4-function calculator. | |
User Stories: | |
User presses number buttons | |
User presses operation buttons to calculate the total | |
User is shown the result of calculation | |
User can clear the display | |
Psuedo: | |
store operations inside of an array | |
buttons that are numbers between 1-9 | |
when number buttons are clicked, values print to the output | |
when operation buttons are clicked it performs the calculation of the numbers | |
that are clicked. | |
append the number with the operator | |
num /*+- value | |
store result inside of a variable | |
store equation inside of a variable | |
if operator is +-/* perform operation on chosen nums | |
display result to display id | |
user clicks clear to clear display | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment