output.mov
The calculator should be able to run the calculation whenever the user hits the ‘=’ button. Everything the user entered should be calculated and the result should be displayed to the screen on the calculator. Example: 4-1=3; 5+7=12; 9/3=3; 8*8=64; 16sqrt=4
The calculator should be able to reset the text whenever the AC button is pressed. This will cause everything that has been entered or calculated to disappear from the display screen so that the text field is now blank.
The Calculator should be able to take two numbers and add them together. Example: 3+4 = 7
- A number should be entered that could be as long as the user wants it to be.
- Then the plus (‘+’) button should be entered
- Followed by another number that can be as long as the user wants it to be.
- The ‘=’ button is hit.
- The two numbers should be added together.
- The resulting text should be the first number, ‘+’, the second number, ‘=’, and the sum of those two numbers.
The Calculator should also be able to run the subtraction function which works similarly to the addition function but with a different operator. Example: 7-3 = 4
- One number is entered first, as long as the user wants it to be.
- Then the ‘-’ operator would be entered by the user hitting the button.
- Another number would be entered.
- The whole operation is run as soon as the user hits the ‘=’ button.
- The second number is then subtracted from the first.
- The resulting text displayed on the calculator is the first number, ‘-’, the second number, ‘=’, and the resulting subtracted number.
The calculator should be able to multiply two numbers together. Example: 4*3=12
- First, the user enters a number of any length into the text field.
- Then the user hits the multiplication button, which enters in the ‘*’ operator.
- Another number is then entered.
- Once the user hits the ‘=’ button, the text field will display the first number, the ‘+’ operator, the second number, the ‘=’ button, and the sum of the two numbers.
The calculator should also be able to divide two numbers. Example: 9/3=3
- The user enters the first number.
- The ‘-’ operator is entered.
- The second number is entered.
- In order to calculate the quotient, the user hits the ‘=’ button. The display text field will then display the first number, the ‘-’ operator, the second number, the ‘=’ number, and the resulting quotient.
The calculator should be able to calculate the square root of a number. Example: 64sqrt=8
- First, the user types in a number of any length.
- Then the sqrt button is hit.
- Once the user hits the ‘=’ button, the text field will be updated to display the first number, the sqrt operator, the ‘=’ operator, and the resulting square root of the number. Backspace The calculator should also be able to perform the backspace functionality. When the ‘<-” operator button is clicked, the last character or number in the text field is deleted.