Question: For this lab you will create a simple abstract data type (ADT) called IntRangeChecker that checks integers against a half-open range provided to the constructor.


For this lab you will create a simple abstract data type (ADT) called IntRangeChecker that checks integers against a half-open range provided to the constructor. Here is the API for this ADT Function constructor IntRangeChecker(int lo, int hi) constructor check boolean check(int i) toString String tostringO Signature Description returns true if is in [lo, hi), false otherwise returns [lo,hi) constructor The constructor should take two integer arguments which define the low and high ends of a half-open range, and store them check() This function takes an integer as input, and returns true if that integer is in the half-open range provided to the constructor, and false otherwise toString()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
