Question: I need to rewrite this function to check that the number of entries for the array are between 5 and 10. Right now, it only

I need to rewrite this function to check that the number of entries for the array are between 5 and 10. Right now, it only allows 10 entries, and stops accepting entries if a negative number is entered. My problem is that I am tripping over myself trying to keep track of the number of entries, and the negative number.
I've tried some branching if/else statements, but I end up breaking more than I fix.
int Load_Array(int Table[]) { int integer_entry 0; int my_counter 0; 9 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 = 0 && my_counter > integer_entry; Table[my_counter] = integer_entry; my_counter++; } cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
