Can you fix it?
> inCity; Acте 22 23 for(x=0; xExtracted text: Searching an Array for an Exact Match in C++ Tasks MichiganCities.cpp + >_ Terminal 1 #include Output City found.Chicago 2 Not a city in Michigan. 3 #include City found.Chicago Not a city in Michigan. 4 5 using namespace std; 7 int main(). 8 { Results e Not a city in Michigan. Expected Output ® 10 string inCity; 11 Not a city in Michigan. 12 const int NUM_CITIES = 10; Unexpected Output © 13 14 string citiesInMichigan[] = {"Acme", "Albion", "Detroit", "Water "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"} City found. Test Case ● Complete 15 16 bool foundIt = false; Test for Acme 17 18 int x; Input 19 20 cout < "city="" found.";="" 21="" cin="">> inCity; Acте 22 23 for(x=0; x
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here