Instructions
Complete the following two questions:
Using exceptions, write a Java application CheckValue with the following specification: The application defines an integer variable taking legal values within the range 9 .. 99 inclusively and invites the user to enter a value for this variable. If the user enteres a legal value, it will be assigned to the variable, the message "Thank you. Initialization completed" will be displayed and the program execution terminates. If an illegal value is entered, it will be identified and reported by displaying an appropriate message at the console and the user will be invited to re-enter a legal value. The following types of errors should be identified and reported: e1 - the user entered an integer number outside the specified range (such as 100); e2 - the user entered a non-integer number (such as 15.43) and e3 - the user fails to enter a number (such as nine). Be sure your code compiles and runs as expected.
Consider a Java interface WarehouseOperations consisting of the following abstract methods suitable for the management of a warehouse of different products: addToStock, deliverFromStock, isFullStock, isEmptyStock.
(a) Design the interface methods by considering and discussing their arguments and return type. Consider that each product in the warehouse is identified by a unique id.
(b) Write the Java code for the interface WarehouseOperations.
Be sure your code compiles without errors.
Submission requirements: Your completed assignment should consist of the Java source files CheckValue.java and WarehouseOperations.java as well as screenshot(s)