Create a class CalibTable that stores a fixed-size calibration table.
The constructor must safely clamp the table size and copy calibration values into an internal array.
A minimum of one value must always be read, even if the input requests size 0 or a negative size.
int sizeint table[10]CalibTable(int n, int arr[])
n < 1, set size = 1n > 10, set size = 10size = nsize elements from arr into the internal arrayint get(int index) → return value or 0 if index is out of rangevoid print() → print stored calibration values space-separatedProgram Behavior:
nmax(n, 1) calibration values into a temporary arrayCalibTable
Example Input:
0
5
Example Output:
5
Explanation:
n = 0 → size becomes 15) is read, stored, and printed
Constraints:
n ≤ 0 by reading at least one value
Input
5 10 20 30 40 50
Expected Output
10 20 30 40 50