Hey Guys/Gals... I'm interested in writing a shell script that implements a simple calculator for integer arithmetic. The calculator should prompt the user and receive its input in following manner:
Enter the first operand: 4
Enter an operator: *
Enter the second operand: 3
Answer: 4 * 3 = 12
Assume that in this example the user entered 4, * and 3 in response to the scripts prompting.
The permissible operators that the calculator should be able to handle are: +,-,*,/ and %. The
calculator should continue running until the user enters the character x at any of the prompts.
Thanks in advance for your help!