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
Naily [24]
3 years ago
7

You are given two int variables j and k, an int array zipcodelist that has been declared and initialized, and an boolean variabl

e duplicates. write some code that assigns true to duplicates if any two elements in the array have the same value, and that assigns false to duplicates otherwise. use only j, k, zipcodelist, and duplicates.
Computers and Technology
1 answer:
Snezhnost [94]3 years ago
4 0
Duplicates = false;

for( j = 0; j < zipcodelist.length -1; j++ )
{
    for( k = j + 1; k < zipcodelist.length; k++ )
    {
         if( zipcodelist[ j ] == zipcodelist[ k ] )
         {
             duplicates = true;
             break;
         }
    }
}
You might be interested in
PLEASE HELP PROGRAMMING WILL GIVE BRAINLIEST
DaniilM [7]

Answer:

1. would be B.

2. would be D

3. May I ask if it can be multiple answers?

Explanation:

1. In coding a if statement has to follow if something is true or not. If we are talking about a if and then statement it will skip that block and move to the next block of the "then" part of the "if then" Statement if the first part is reported false

2. This is a easy one, so it has to be either a 3.25 GPA or higher or they have to have either 100 hours or more.

3. waiting for a comment back :)

4 0
4 years ago
50 pts
Aloiza [94]

Answer:

I would do newWord = word1 * word2

Explanation:

seems best for combining words. It wouldn't be - or == and + seems more math while * seems more combining words.

7 0
3 years ago
Read 2 more answers
Difference between alt tab and windows tab
Kryger [21]
Alt+Tab switches between windows instantly while Windows+Tab displays all currently active windows.
Hope this helps :D
7 0
3 years ago
Define what is a PC?
nekit [7.7K]

PC stands for Personal Computer (generic term) This definition appears very frequently and is found in the following Acronym Finder categories: Information technology (IT) and computers.

8 0
3 years ago
Read 2 more answers
Hey can you help we with this thanks
dimulka [17.4K]
Hey, it's easy, come on!
6 0
3 years ago
Other questions:
  • Given that a method receives three parameters a, b, c, of type double, write some code, to be included as part of the method, th
    8·1 answer
  • Vpns can be classified based on the kinds of ____ they connect
    6·1 answer
  • A display that is thin, flexible, light, and easy to read in all types of light is
    9·2 answers
  • Choose the reasons why Windows Server operating systems are a popular choice for a network because they _____. Select all that a
    12·1 answer
  • The file format that an application can always open a named collection of data on a storage medium such as a hard disk or usb fl
    13·1 answer
  • A network administrator is attempting to troubleshoot an issue regarding certificates on a secure website. During the troublesho
    8·1 answer
  • 1. What type of malware is triggered by a specific condition, such as a specific date or a particular user account being disable
    6·1 answer
  • In 1956, the unit byte was coined by American statistician and computer scientist John Tukey
    11·1 answer
  • 14. My computer “boots-up” (aka activates and starts running) but it tells me that it cannot find the data to start the operatin
    6·1 answer
  • Which of the following is not a secondary memory. (a) pen drive (b) Hard disk (c) Ram (d) Magnetic disk
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!