- Include a "numpad" with a button for each digit 0-9
- Include buttons for + , - , * , / , % , and =
- Include a Clear button, and an Exit button
- Include a Text Box for numbers/calculations
- Users must be able to enter a number one digit at a time
- Pressing a math symbol displays it to the right of the currently entered number
- Pressing a math symbol with no number entered displays an error message
- After the error is displayed, clear the calculation text box
- Pressing = with a number, math symbol, and another number calculates the result, and displays it in the calculation text box
- Pressing = without a valid equation in the calculation box displays an error
- After the equation is calculated, users should be able to perform further calculations on the result.
- Pressing Clear clears the calculation box and wipes any stored data
- Pressing Exit exits the program
NPITX-programs/calculator-inator
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|