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
faust18 [17]
3 years ago
6

Write the function appendEvens() which, given two arrays, adds all of the even elements from the first to the second. You may as

sume the second has enough space.
Computers and Technology
1 answer:
Ksivusya [100]3 years ago
6 0

Answer:

function appendEvens( arr1, arr2) {

   for (let i in arr1){

       if (i%2 == 0){

           arr2.push(i);

       }

   }

}

Explanation:

The defined javascript function "appendEvens" is a function that returns undefined. It accepts two arrays and pushes the even numbers from the first array to the second.

You might be interested in
Templates allow for the quick creation of _____.
Ivan
Templates allow for the quick creation of a website
5 0
3 years ago
Members of the sales team use laptops to connect to the company network. While traveling, they connect their laptops to the inte
coldgirl [10]

Answer: Network access control (NAC)

Explanation:

The solution that should be used is the network access control. Network access control helps in keeping devices and users that are unauthorized out of ones private network.

In this case, since one will like to prevent the laptops from connecting to the network unless anti-virus software and the latest operating system patches are installed, then the network access control can be used. One can only give access to the device that it wants to give access to and prevent others from connecting.

3 0
3 years ago
Lab: even/odd values in an array
Crank

def input_values(new_list):

   new_list = []

   n = int(input('Enter number of values: '))

   for i in range(n):

       new_list.append(int(input('Enter values: ')))

   def is_list_even(new_list):

       for i in range(len(new_list)):

           if new_list[i]%2!=0:

               return False

           return True

   def is_list_odd(new_list):

       for i in range(len(new_list)):

           if new_list[i]%2==0:

               return False

           return True

   num=input_values()

   if is_list_even(num)==True:

       print('all even')

   elif is_list_odd(num)==True:

       print('all odd')

   else:

       print('not even or odd')

3 0
3 years ago
What is characteristic of the Computer?
oksian1 [2.3K]

Answer:

storage to store the data and files

5 0
3 years ago
Read 2 more answers
Tanner has had many different jobs. He previously designed the playscape at the local park with natural rocks, creeks, and veget
zavuch27 [327]
I think it would be Design. 
3 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program that defines a type for a structure that stores information on a student in ENG EK 125. Declare two variables to
    8·1 answer
  • Soo...My Old 3DS XL haven't been touched in around a year...So i tried to charge it but no LED lights opened..Even the power but
    14·1 answer
  • 14. What is the simplest way to permanently get rid of an unwanted file?
    9·1 answer
  • You have a workstation running windows vista business that you would like to upgrade to windows 7 ultimate. you want to perform
    11·1 answer
  • When a module is executing what happens when the end of the module is reached?
    10·1 answer
  • The term computer ________ is used to describe someone who is familiar enough with computers to understand their capabilities an
    12·1 answer
  • Chapter 12 Reading Question 19 The most distinguishing characteristic of geographical information systems is: Every record or di
    5·1 answer
  • Anna wants to keep information secure from offenders. Which software should she install on her computer to ensure Internet safet
    13·1 answer
  • (k + 3)by the power of 3​
    9·1 answer
  • You’ve been hired to help a bank automate their deposit/withdrawal system! Your task is to write a Python program that interacts
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!