This text-based console application is performing simple natural calculations. If the user enters "five times three" the app will output '15'.
#Guidelines:
- Input values are:
- Whole numbers: [0,9]
- Expressed as text.
- Not case-sensitive.
- Arithmetic operations supported are not case-sensitive and are displayed in the following table:
- Any number of operations are chained together.
- When two or more operations are chained together, any multiply or divide operation take precedence over any add or subtract operation, similar to how a real calculator works. However, no support exists for use of brackets to alter operator precedence
Operator | Permitted Aliases |
Add (+) | add, plus |
Subtract (-) | subtract, minus, less |
Multiply (*) | multiply-by, times |
Divide (/) | divide-by, over |
This calculator was implemented as an interview assignment.