Can you fix it? _ Terminal1 #include OutputCity found.Chicago2Not a city in Michigan.3 #include City found.ChicagoNot a city in Michigan.45 using namespace std;7 int main().8 {Results eNot...


Can you fix it?



Searching an Array for an Exact Match in C++<br>Tasks<br>MichiganCities.cpp<br>+<br>>_ Terminal<br>1 #include <iostream><br>Output<br>City found.Chicago<br>2<br>Not a city in Michigan.<br>3 #include <string><br>City found.Chicago<br>Not a city in Michigan.<br>4<br>5 using namespace std;<br>7 int main().<br>8 {<br>Results e<br>Not a city in Michigan.<br>Expected Output ®<br>10 string inCity;<br>11<br>Not a city in Michigan.<br>12 const int NUM_CITIES = 10;<br>Unexpected Output ©<br>13<br>14 string citiesInMichigan[] = {> inCity; Acте 22 23 for(x=0; x
Extracted 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

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here