Question

# Please answer as soon as possible Consider the function doIt defined as follows: def doIt(numbers: Array[Double],...

Consider the function doIt defined as follows:

```def doIt(numbers: Array[Double], x: Double, y: Double) =
numbers.filter( (number: Double) => number >= x - y && number <= x + y )```

If numbers is:

`numbers = Array(2.5, 1, 3.2, 9.3, 2, 9, 1.5)`

What is returned by doIt(numbers, 2, 3)?

It will return

2.5 1.0 3.2 2.0 1.5

because these numbers lies between range -1(=2-3) and 5 (=2+3)

#### Earn Coins

Coins can be redeemed for fabulous gifts.

##### Need Online Homework Help?

Most questions answered within 1 hours.

##### Active Questions
• Create a program in java using if statements Suppose the WIFI of a client is not...
• W Mart, one of major retailers, reported cash flows and earning: Comprehensive income) for the firm...
• Parker Hi-Fi Systems Parker Hi-Fi Systems, located in Wellesley, Massachusetts, a Boston suburb, assembles and sells...
• Manufacturing companies strive to maintain production​ consistency, but it is often difficult for outsiders to tell...
• There is a difference between statistical probability and theoretical probability. The theoretical probability of rolling a...
• In a small struggling technology company, the employees are aware that processes and structures must change...