ok it has to be private ? and what are the numbers 5 and 100
Corrected version of the question :
The class should also have a numcars member function that uses two-dimensional array to display the numbers as vertical bars.For example, the output for five numbers 1, 2, 3, 4, 5 would be