Question: C + + pls; Assume you have a class named InputOutOfBoundsException designed to handle errors when a user's int input value falls outside an acceptable
C pls;
Assume you have a class named InputOutOfBoundsException designed to handle errors when a user's int input value falls outside an acceptable range, as you defined in the previous assignment.
This class has a constructor that accepts a minimumValue, a maximumValue, and an outOfBoundsValue all of type int in that order.
Your task is to write the function called validateInputint lowerLimit, int upperLimit which reads integers from user input continuously. If an input integer is outside this range, your function should throw an InputOutOfBoundsException. The InputOutOfBoundsException constructor takes three arguments lowerLimit upperLimit, userValue
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
