Answer:
Replace the comments with:
for(x = 0; x < NUM_CITIES; x++){
if(inCity == citiesInMichigan[x]){ foundIt = true;}
}
if(foundIt){ cout<<"Exists";}
else{cout<<"Does not exists";}
Explanation:
This iterates through the cities
This checks if current city in the array matches the city input by the user
foundIt = true; If yes, foundIt is set to true}
}
If foundIt is true, print "Exists"
if(foundIt){ cout<<"Exists";}
If foundIt is false, print "Does not Exists"
else{cout<<"Does not exists";}
<em>See attachment for complete program</em>