1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Keith_Richards [23]
3 years ago
6

Summary

Computers and Technology
1 answer:
Karo-lina-s [1.5K]3 years ago
8 0

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

for(x = 0; x < NUM\_CITIES; x++)\{

This checks if current city in the array matches the city input by the user

if(inCity == citie sIn Michigan[x])\{           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>

Download cpp
You might be interested in
Which of the following best characterizes the state of programming languages over time? They increase in popularity as more prod
Rufina [12.5K]
<h2>Answer:</h2>

Option D: They vary based on popularity and market demand of products designed with the language.

is the correct answer that best categorizes the state o programming languages over time.

<h2 /><h2>Explanation:</h2>

With the advent of time, new programming languages are also introduced. But this doesn't means that the older ones are loosing or gaining popularity because of others. Changing or development of product design in the market tells us that the programming languages have their own specific properties on the basis of which they are used.

From this we can conclude that a programming language gets popular due to its specifications and features that may not get diminished by the features o other programming languages.

<h3>For example:</h3>
  • Java script is used mostly to create desktop apps.
  • C language is used widely in embedded systems and electronics.

<h3>I hope it will help you a lot!</h3>
8 0
4 years ago
George is only familiar with VGA connector for monitors. What should you tell him are the main differences between VGA and DVI c
lara [203]

Answer:

That a DVI connector looks different and that it support more monitors.

Explanation:

3 0
3 years ago
A throw(...) statement is an alternative way to return from a function or method that indicates some kind of failure occurred.
WITCHER [35]

Answer:

a.True.

Explanation:

A throw statement is used to throw an exception from inside the method.Whenever the throw statement is encountered by the compiler and after that when it is executed the execution of the currently executing method is stopped and it returns back to caller.

There is also a keyword Throws which is used to tell the compiler that the method may throw one or more exceptions.

Hence we conclude that the answer is True.

6 0
4 years ago
Which of the following words is an anatomy for cautious
liraira [26]
Uh, I think you mean antonym.

Anyways, here are some antonyms.

Careless, Certain, Foolish, Inattentive, Incautious
8 0
4 years ago
The code repeat 3 [forward 50 right 120] creates which shape?
Basile [38]

Answer:

Triangle. D

Explanation:

I have no Idea, I was searching for the answer like most of you guys are doing. But my best guess is Triangle

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following statements outputs the value of the gpa member of element 1 of the student array?
    5·1 answer
  • Create a stack with three integers and then use .toarray to copy it to an array.
    10·1 answer
  • Finally, Lee wants to modify the table he linked to his presentation. How should he begin?
    8·1 answer
  • Type of media that uses laser technology to store data and programs is
    6·1 answer
  • _____ supplement operating system software in ways that increase the security or capabilities of the computer system. firewalls,
    15·1 answer
  • A system that organizes and controls website content and can include features that help team members work together on webpages a
    13·1 answer
  • Using a graphic organizer in the prewriting can do all of the following except what?
    9·1 answer
  • What is the unemployment rate if the GDP gap is 13.5%?<br><br> A. 6.25%<br> B. 6.75%<br> C. 6.7%
    8·1 answer
  • personal digital assistants are handheld devices that serve as personql information managers. what is another term used to refer
    11·2 answers
  • Why are computer manufacture constantly releases fast computer and do user benefit from ths speed
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!