Originally Posted by
Norm
What if user enters From/To as -1 9999
or 4 1
Should the program detect those invalid inputs and give an error message? Or just let the code throw an exception?
Another point - the program should prompt the user for the values to load into the array with comment about ending the input with -1
I can think of those scenarios in my project. However, the exercise was limited to what it requested from me. I think this is the final solution to the exercise. However, time is against me to work on one project. I have been given around 120 projects for a short period of time.
More questions will be asked and I hope I won't be a burden to you