11.1k views
2 votes
Which of the following tasks could be implemented as a filter using only a constant amount of memory (e.g., a couple of int or double variables and no arrays)? Mark all that apply.

For each, the input comes from standard input and consists of n real numbers between 0.0 and 1.0.

Print the sum of the squares of the n numbers
Print the maximum and minimum values of the n numbers
Print the percentage of numbers greater than the average of the n numbers
Print the median of the n numbers
Print the average of the n numbers
Print the n numbers in uniformly random order
Print the n numbers in increasing order

User Upperstage
by
5.4k points

1 Answer

2 votes

Answer:

Print the sum of the squares of the n numbers

Print the percentage of numbers greater than the average of the n numbers

Print the median f n numbers

Step-by-step explanation:

The computer programs have different configurations based on the assigned tasks. The constant amount of memory is used by the cache. This is the new technology in the computer software which consumes only small amount of memory and activates once the task is assigned to it.

User Anshul Nigam
by
5.1k points