Question: Create a logic design that uses an array that contains valid names for 10 cities in Michigan namely: Acme, Albion, Detroit, Watervliet, Coloma, Saginaw, Richland,
Create a logic design that uses an array that contains valid names for 10 cities in Michigan namely: Acme, Albion, Detroit, Watervliet, Coloma, Saginaw, Richland, Glenn, Midland and Brooklyn. You ask the user to enter a city name; your program then searches the array for that city name. If it is not found, the program should print a message that informs the user the city name is not found in the list of valid cities in Michigan.
With discussion and conclusion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
