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
malfutka [58]
3 years ago
11

Output values below an amount

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

Answer:

Explanation:

The following code is written in Python and it is a function called filter, which takes in the requested inputs. It then places the threshold in its own variable and pops it out of the array of inputs. Then it loops through the array comparing each element with the threshold and printing out all of the ones that are less than or equal to the threshold.

def filter():

   num_of_elements = input("Enter a number: ")

   count = 0

   arr_of_nums = []

   while count <= int(num_of_elements):

       arr_of_nums.append(input("Enter a number: "))

       count += 1

   threshold = arr_of_nums[-1]

   arr_of_nums.pop(-1)

   print(threshold)

   for element in arr_of_nums:

       if int(element) < int(threshold):

           print(element)

       else:

           continue

You might be interested in
The trade winds are the dominant surface winds from the subtropics to high latitudes. 1. True 2. False
Hatshy [7]

Answer:FALSE

Explanation: ITS THE WESTERLIES

5 0
3 years ago
Technological _____ is the term used to describe the merging of several technologies into a single device.
Sophie [7]

The answer is convergence.

3 0
3 years ago
Given an array of integers check if it is possible to partition the array into some number of subsequences of length k each, suc
allochka39001 [22]

Answer:

Explanation:

Using Python as our programming language

code:

def partitionArray(A,k):

flag=0

if not A and k == 1:

return "Yes"

if k > len(A) or len(A)%len(A):

return "No"

flag+=1

cnt = {i:A.count(i) for i in A}

if len(A)//k < max(cnt.values()):

return "No"

flag+=1

if(flag==0):

return "Yes"

k=int(input("k= "))

n=int(input("n= "))

print("A= ")

A=list(map(int,input().split()))[:n]

print(partitionArray(A,k))

Code Screenshot:-

3 0
3 years ago
System testing: A. includes all the preparations for the series of tests to be performed on the system. B. tests the functioning
hichkok12 [17]

Answer:

B. tests the functioning of the system as a whole.

Explanation:

System testing is an integral part of system development.

Testing is all about ascertaining the functionality of the system to meet the initial functionality designed before.

From the options, the best answer that suite the definition of system testing is:

B. tests the functioning of the system as a whole.

System testing test the functioning of the system as a whole. It check the functionality of individual part and how it relate or inter-operate with other part in the entire system.

4 0
3 years ago
If you ping a device, you are using the______protocol
meriva
Joystick..................:-)
6 0
4 years ago
Other questions:
  • Identify the correct software or hardware applications in the passage below
    10·1 answer
  • Angela's ready to get started with her first Smart Display campaign, but her account isn't yet eligible due to not having enough
    11·1 answer
  • One in five teens have been tricked by someone online:
    14·2 answers
  • Edhesive 3.4 question 2
    11·2 answers
  • What is the minimum internal temperature that the chicken must reach?
    11·1 answer
  • What is an electronic path over which data can travel.
    7·1 answer
  • What can be defined as in information technology environment?
    14·2 answers
  • Google is an example of a(n):
    13·1 answer
  • Of the measures of feasibility in the accompanying figure, ____ considers points such as "Does the proposed platform have suffic
    8·1 answer
  • You must keep track of some data. Your options are: (1) A linked-list maintained in sorted order. (2) A linked-list of unsorted
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!