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
photoshop1234 [79]
3 years ago
14

9.4 Code Practice: Your task is to determine whether each item in the array above is divisible

Computers and Technology
1 answer:
wariber [46]3 years ago
7 0

Answer:

Explanation:

The following Python code is a function that takes in an array as a parameter, it then loops through the array determining if the element is divisible by 3. If it is it leaves it alone, otherwise it changes it to a 0. Then ouputs the array. A test case is shown in the attached image below using a sample array.

def divisible_by_three(array):

   for x in array:

       if x % 3 == 0:

           pass

       else:

           array[array.index(x)] = 0

   return array

You might be interested in
Marie and Jean-Pierre want to share their work with each other easily to collaborate on a school project. What is the BEST way f
Sedbober [7]

Answer:

Upload the files to an online storage application and give both of them access

Explanation:

Multiple individuals can collaborate on a common files by uploading the shared documents to an online repository and providing access credentials to the documents to both the individuals. The two individuals, Marie and Jean-Pierre in this case, can then take turns to contribute their portion of school project until it gets to the final state ready for submission.

7 0
3 years ago
What is an example of an Experience component within an enterprise platform?​
Alisiya [41]

Answer:

A

Explanation:

A system used for processing customer payments. A tool used to coordinate recruitment of new employees. A mobile app used by customers to place orders.

6 0
3 years ago
A canister is released from a helicopter 500m above the ground. The canister is designed to withstand an impact speed of up to 1
Lisa [10]

Answer:

a) h = 1/2 gt² b) 99 m/s c) 14.1 m/s

Explanation:

a) As the only force acting on the canister once released is gravity, as it is constant, we can use one of the kinematic equations, as follows:

h = h₀ + v₀t + 1/2a t²

As we are told that the canister is simply released, it means that v₀ =0.

If we choose the direction of the acceleration (downward) as positive ,and we select the height at which it was released as our origin, so h₀ =0, the final expression for height is as follows:

h = 1/2 g t²

b) Combining this equation with the expression of t, from the definition of acceleration as the rate of change of velocity, we arrive to this expression:

vf² - v₀² = 2 g h  

As v₀ = 0, we have v₀ = √2.g.h = √2.9.8.500 m²/s² = 99 m/s

c) In order to be able to break the canister, impact speed must be larger than 100 m/s.

So, we can use the same equation as above, putting vf=100 m/s, and solving for v₀, as follows:

v₀² = vf² - 2.g.h = 100² m²/s² - 2.9.8.500 m²/s² = 200 m²/s²

v₀ = √200 m²/s² = 14.1 m/s

For any value of v₀ just barely larger than this, the canister will be broken.

7 0
3 years ago
What does the following statement do? double[] array1 = new double[10]; A. Declares array1 to be a reference to an array of doub
Crank

Answer:

The answer is "Option D".

Explanation:

In the given code an array that is "array1" is declared that stores double value because its data type is double. This array stores 10 element, that is equal, and between 0 to 9, because array indexing always starts from 0. In the given array declaration code all options are correct, that can be described as follows:

  • In option A, It is correct, because all element stores double value.
  • In option B, It is correct, because the size of the array is 10.
  • In option C, It is also correct, because it ranges between 0 to 9.
7 0
3 years ago
1. Why do we have to consider being organized in doing our daily tasks?
alexgriva [62]

  • Being Organized makes us feel Better doing our works.
  • It makes us do works one by one without leaving any.
  • it helps us to clear out backlogs faster.
  • Being organized while studying Keeps less distractions like- Phone, Social Media etc.
  • Being organized means keeping a track on what we are doing, What we have to do and all.
4 0
3 years ago
Other questions:
  • How would you say an hard drive works
    9·2 answers
  • Which is an aspect of structural-level design?
    6·2 answers
  • Which feature allows users to see all suggestions for edits to a document at once?
    7·2 answers
  • This is a program that calculates information about orders of shirts and pants. All orders have a quantity and a color. Write a
    7·1 answer
  • One of the first and main steps in protecting your email is to have a __________ filtering system.
    6·1 answer
  • Por qué no es tan común el uso de energías mas amigables con el medio ambiente en el país donde vives?
    7·1 answer
  • Custom actions help your users by
    6·1 answer
  • Subscribe to my you tube channel to get all your questions answered
    8·1 answer
  • Explain the working principle of computer with suitable diagram​
    15·1 answer
  • What is a best practice when approaching an automation effort?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!