Write a program that prompts the user to:
⦁ Enter a number within the range of 0 through 100.
⦁ Enter an operator. ( + or – or * or / )
⦁ Enter another number within the range of 0 through 100.
Then displays the result of first number (operator) second number.
⦁ Both numbers should be between 0 and 100, otherwise the program should throw error.
⦁ The result should be less than 100, otherwise the program should throw error.
⦁ The program should throw invalid operator error if user enters anything except +,-,*, or /.
⦁ The program should throw "Division by zero is not possible!" error if user cuases division by zero.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |