subject

In this lab, you use what you have learned about searching an array to find an exact match to complete a partially prewritten c++ program. the program uses an array that contains valid names for 10 cities in michigan. 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. the file provided for this lab includes the input statements and the necessary variable declarations. you need to use a loop to examine all the items in the array and test for a match. you also need to set a flag if there is a match and then test the flag variable to determine if you should print the the not a city in michigan. message. comments in the code tell you where to write your statements. you can use the previous mail order program as a guide.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
You know the right answer?
In this lab, you use what you have learned about searching an array to find an exact match to comple...
Questions
question
English, 30.05.2020 01:01
question
Mathematics, 30.05.2020 01:01
question
Physics, 30.05.2020 01:01
question
History, 30.05.2020 01:01
question
Mathematics, 30.05.2020 01:01
Questions on the website: 13722361