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
olga nikolaevna [1]
2 years ago
5

Write a program that first reads a list of 5 integers from input. Then, read another value from the input, and output all intege

rs less than or equal to that last value.
Ex: If the input is:

50 60 140 200 75 100
the output is:

50 60 75
For coding simplicity, follow every output value by a space, including the last one. Then, output a newline.

Such functionality is common on sites like Amazon, where a user can filter results. coral language, please
Computers and Technology
2 answers:
Makovka662 [10]2 years ago
8 0

Using the knowledge in python it is possible to write a code that uses the given values ​​to write its divisors.

<h3>Writing code in python:</h3>

<em>integer i</em>

<em>integer threshold</em>

<em>integer array(5) data</em>

<em>for i = 0; i < data.size; i = i + 1</em>

<em>   data[50, 60, 140, 200, 75, 100] = Get next input</em>

<em>threshold = Get next input</em>

<em>for i = 0; i < data.size; i = i + 1</em>

<em>   if data[50, 60, 140, 200, 75, 100] </em>

 

See more about python at brainly.com/question/18502436

#SPJ1

oksian1 [2.3K]2 years ago
6 0

Answer:

take user input element of list and print element of list whose value  are less than equal to last value of list

<u>Image 1: Input</u>

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

      print("The integers that are less than or equal to", upper_threshold, "are:")

      for value in user_values:

             if value < upper_threshold:

                    print(value)

def get_user_values():

      n = int(input("Enter the number of integers in your list: ");

      1st = []

      print("Enter the", n, "integers:");

      for i in range(n):

             1st.append(int(input)

      return ist

if _name__ == '_main_':

userValues = get_user_values();

upperThreshold = int(userValues[-11), output ints less than or equal to threshold(userValues, upperThreshold)

<u>Image 1: Output</u>

Enter the number of integers in your list: 3 Enter the 3 integers:

10

50

20

The integers that are less than or equal to 20 are:

10

You might be interested in
A _____ is a collection of (potentially) thousands of computers that can respond to requests over a network
Rom4ik [11]

Answer:

server or supercomputer

Explanation:

5 0
2 years ago
Traffic collisions are among the top killers of children in America.
Blababa [14]
Whats the question if its true or false, then true
8 0
3 years ago
Prove that any amount of postage greater than or equal to 64 cents can be obtained using only 5-cent and 17-cent stamps?
elixir [45]
Let P(n) be "a postage of n cents can be formed using 5-cent and 17-cent stamps if n is greater than 63".Basis step: P(64) is true since 64 cents postage can be formed with one 5-cent and one 17-cent stamp.Inductive step: Assume that P(n) is true, that is, postage of n cents can be formed using 5-cent and 17-cent stamps. We will show how to form postage of n + 1 cents. By the inductive hypothesis postage of n cents can be formed using 5-cent and 17-cent stamps. If this included a 17-cent stamp, replace this 17-cent stamp with two 5-cent stamps to obtain n + 1 cents postage. Otherwise, only 5-cent stamps were used and n  65. Hence there are at least three 5-cent stamps forming n cents. Remove three of these 5-cent stamps and replace them with two 17-cent stamps to obtain n + 1 cents postage.Hence P(n + 1) is true.
6 0
4 years ago
Your digital footprint says a lot about you, but not everything is true or accurate. When you're a high school or college studen
Aleks [24]

Answer:

yes

Explanation:

cuz im yearz old

7 0
3 years ago
What is RAD? List an advantage and a disadvantage of using RAD.
ahrayia [7]

Answer:

 RAD is the technique that are used in software development methodology to facilitate the application of the various software development. It is basically provide the high availability of software for he designers. It works on the principle of waterfall model.

Advantages-

  •  It is useful to reduce the overall risks in the system
  •  It is flexible to change
  •  The high level abstraction are easy to transfer

Disadvantage-

  • This process cannot be use in small level projects
  • Not all the applications are suitable with the RAD  
  • It does not work on high technical complexity

7 0
3 years ago
Other questions:
  • Suppose a digital camera has a storage capacity of 256mb. how many photographs could be stored in the camera if each consisted o
    8·1 answer
  • A university wants to install a client-server network. Which feature do you think is important for them as they set up the netwo
    8·1 answer
  • Which of the following should be the first page of a report?
    11·1 answer
  • Manny has created more than one hundred bookmarks. When he looks at the menu, he has to scroll through a very long list of bookm
    15·1 answer
  • Explain briefly the purpose of the Computer Management Console in Microsoft Windows.
    12·1 answer
  • Which type of account typically has low liquidity?
    7·1 answer
  • In most languages, if a file does not exist and a program attempts to open it in append mode, what happens?
    12·1 answer
  • Which of the following uses the proper syntax for creating an HTML comment?
    8·1 answer
  • 1. Identify a local or regional cause or issue for Social Change related to specific professional tracks that can be addressed o
    14·1 answer
  • What are the common operations performed on character strings?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!