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
Nastasia [14]
3 years ago
11

You are given a variable zipcode_list that refers to a list. write some code that assigns true to a variable duplicates if there

are two adjacent elements in the list that have the same value, but that otherwise assigns false to duplicates otherwise. in order to accomplish this, you may, if you wish, use one other variable, k. use only k, zipcode_list, and duplicates.
Computers and Technology
1 answer:
ivanzaharov [21]3 years ago
6 0
<span>Some code that assigns true to a variable duplicates if there are two adjacent elements in the list that have the same value, but that otherwise assigns false to duplicates otherwise is: duplicates=false; for (k=0; k<nZips-1; k++){ if (zipcodeList[k]==zipcodeList[k+1]){ duplicates=true; break; } }</span>
You might be interested in
Which of the following best describes the purpose of child labor laws?
BabaBlast [244]

Answer:

Are there supposed to be answer choices with this question?

Child labor laws are basically laws placing restrictions and regulations on the work of minors.

6 0
3 years ago
Read 2 more answers
Your personality is that of everyone else
lubasha [3.4K]

hmmmmm but is it really

5 0
3 years ago
Read 2 more answers
Whats a good way to remember to log out
Gemiola [76]
You just need to set a reminder on your phone and try and remember

3 0
3 years ago
Keyboarding and typing 100 words per minute can be thought of as a
bija089 [108]
is categorised as typing speed skill
5 0
3 years ago
Carlos owns a hardware store. He currently is not using any software to track what he has in the store. In one to two sentences,
gladu [14]
Excel Would be good for inventory and price management
7 0
3 years ago
Read 2 more answers
Other questions:
  • How do media and networks interact
    11·1 answer
  • You plan to use the Fill Down feature on a formula in Excel and need to keep a cell reference the same. Which format allows you
    6·1 answer
  • Because it takes time to change an organization’s culture, the ISO must continually monitor security policy compliance. The ISO
    9·1 answer
  • Give a real life of an if statement
    13·1 answer
  • Select the online reading comprehension tool that best fits the description. This tool lets users change text from one language
    6·2 answers
  • What is the term used to describe the basic unit of data passed from one computer to another
    14·1 answer
  • Which of the following statements is TRUE of a peer-to-peer network?
    10·1 answer
  • 1) "Information systems are revolutionizing the way businesses function in the 21st century," Do you agree or disagree with this
    5·1 answer
  • Trojans depend on ________ to spread. A rootkits B self-replication C code injection D social engineering
    14·1 answer
  • You can open a movie maker project file any time in a media player. (1 point) true false
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!