Both numbers should be between 0 and 100, otherwise the program should throw error.

computer science

Description

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.


Instruction Files

Related Questions in computer science category