this is a copy of what the console outputs below. why is it outputting this random stuff at the end? (-1929314651 2685740)
How many vehicle's would you like to add to the inventory?: 1
Please enter the vehicle's year: 1800
Invalid year. Year must be between 1910 and 2014
Please enter the vehicle's year: 1800
Invalid year. Year must be between 1910 and 2014
Please enter the vehicle's year: 1990
Please enter the vehicle's make: jeep
Please enter the vehicle's model: wrangler
Please enter the mileage: 200
1990 jeep wrangler 200
Just a small thing, don't start a new topic if the subject is the same. Keep the original one going, otherwise we might have 20 topics about the same thing. Decide which one you are going to go with, and mark the other one as solved.
The idiom for a for loop is this:
for(ctr = 0; ctr < elementLength; ctr++) {}
On line 49, you forgot to subtract 1, hence went past the end of the array.
while(validInput2 != true)
can be written:
while(!validInput2)
See my reply to the other topic, about how to get all the info first.