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
What are the two extra registers that the fetch decode execute cycle uses to communicate with memory outside of the chip?
Gennadij [26K]

Answer:

Memory address register

Memory buffer register

Explanation:

In c/c++, the processor consists of mainly five stages.

  • FETCH
  • DECODE
  • EXECUTE
  • MEMORY
  • WRITE BACK    

The memory address (MAR) register is a register where memory locations are being stored and where instructions are being fetched from the memory.

The memory buffer register (MBR) specifically enables the storage of data that are fetched or to be written in the memory.

8 0
3 years ago
Kali, a Python programmer, is using the turtle module to write the word "hello." Which code should she use to indicate the locat
Sever21 [200]

Answer:

a) penup()

goto(-100, 200)

pendown()

Explanation:

The python program to indicate the location to begin writing the word can be

penup()

goto(-100, 200)

pendown()

# in python is use to add comment so it is incorrect.

all other option does not have correct syntex.

4 0
3 years ago
Read 2 more answers
Software that communicates with the hardware and allows other programs to run. It is comprised of system software, or the fundam
alukav5142 [94]

Answer:An operating system, or "OS," is software that communicates with the hardware and allows other programs to run. It is comprised of system software, or the fundamental files your computer needs to boot up and function.

Explanation:

8 0
3 years ago
Which one of the following UNIX utilities is purpose-built to quickly return the location (filepath) of files by querying a data
Galina-37 [17]

Answer:

a.locate

Explanation:

locate utility in Unix is used to quickly return the filepath of the file searched for.find also used to do the same work but it is not as fast as locate.

locate is faster than find because it does not read the filesystem to search the file infact it refers to the database to search the file and produces it's output and the database is created by updatedb command.

4 0
3 years ago
You want to change your cell phone plan and call the company to discuss options
Vikki [24]
And? What’s the point? The question?
3 0
3 years ago
Other questions:
  • Input _____ is a template or pattern that restricts data entry and prevents errors.
    7·1 answer
  • What is the most common programming language that's not python?
    15·2 answers
  • What are the links between the operating systems, the software, and hardware components in the network, firewall, and IDS that m
    7·1 answer
  • if image size and resolution are the same, which file format, .jpg, .gif, .or .tiff, will give you the smallest file size?
    8·2 answers
  • What term is given to pieces of computer software that allow you to manage your e-mail from your computer?
    12·1 answer
  • One of the prominent movies released in the 1950s is
    15·2 answers
  • Jerry is working at the desk of a client in the marketing department of his company. The client thinks that the problem is the v
    5·1 answer
  • A consumer wants to add a hard drive to their computer to store video from their camera. Which of the following would represent
    9·1 answer
  • I umm… really need helpp<br> Can someone help me out <br> I’ll even mark u as brainiest !
    12·1 answer
  • You want to purchase a computer, and the salesperson refers to separate pricing for a system unit and for the software applicati
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!