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
mamaluj [8]
3 years ago
12

Implement a function called myFilter that does the following: Takes a sequence of integers with values from 0 to 100 Remove all

multiples of 6 less than 42 Then square each number Finally, remove any resulting integer that is odd public class Problem2 { public static IEnumerable myFilter(IEnumerable input) { } } static void Main(string[] args)
Engineering
1 answer:
goldenfox [79]3 years ago
6 0

Answer:

using System;

using System.Collections.Generic;

using System.Linq;

public class Problem1 {

public static IEnumerable < int > myFilter(IEnumerable < int > input) {

return input.Where((val, index) => {

//First remove all multiples of 6 less than 42

return !(val % 6 == 0 && val < 42);

}).Select((val, index) => {

//Then square each number

return val * val;

}).Where((val, index) => {

// Finally, remove any resulting integer that is odd

return !(val % 1 == 0);

});

}

public static void Main(string[] args) {

Random rnd = new Random(5);

//Takes a sequence of integers with values from 0 to 100

var listForProblem = Enumerable.Range(1, 100).Select(i => rnd.Next() % 101);

var answer = Problem1.myFilter(listForProblem);

foreach(int i in answer) {

Console.WriteLine(i);

}

}

}

Explanation:

The Problem 1 solution is explanatory enough.

Your problem 2 question is lacking details. However, i have written a code that sorts it.

You might be interested in
Your sprayer has a 60-foot wide boom with 36 nozzles along this 60-foot length. Your spray speed is 4.5 miles per hour and you w
Mice21 [21]

Answer:

358.52 m/s

Explanation:

From the information given:

The required amount you should catch per nozzle in 15 secs. can be  determined by using the formula:

Gallons/Min  = \dfrac{(Gallons/Acre \times Miles/Hour \times  nozzle \ spacing )}{5940}

where;

Gallons/Acre  = 25 GPA

= \dfrac{(25 \times 4.5 \times 60 \times \dfrac{12}{ 36})}{5940} \times \dfrac{15}{60}

= \dfrac{(25 \times 4.5 \times 60 \times0.333)}{5940} \times 0.25

= \dfrac{(2247.75)}{5940} \times 0.25

= 0.0946 gps

= 358.52 m/s

4 0
3 years ago
Select the correct answer
kifflom [539]

Answer: C. Exchanging ideas with the group will help build his knowledge and reputation

Explanation:

Professional networking refers to the building of professional relationships. This helps in establishing connections that are mutually-beneficial with the people that are in ones profession.

Based on the scenario given, the reason for Vijay to join a networking group is that exchanging ideas with the group will help build his knowledge and reputation.

5 0
3 years ago
Vehicles arrive at a single toll booth beginning at 8:00 A.M. They arrive and depart according to a uniform deterministic distri
jok3333 [9.3K]

Answer:

Explanation:

answers attached bellow

6 0
3 years ago
An aluminum bar 125 mm long with a square cross section 16 mm on an edge is pulled in tension with a load of 66,700 N and experi
AfilCa [17]

Answer: the modulus of elasticity of the aluminum is 75740.37 MPa

Explanation:

Given that;

Length of Aluminum bar L = 125 mm

square cross section s = 16 mm

so area of cross section of the aluminum bar is;

A = s² = 16² = 256 mm²

Tensile load acting the bar p = 66,700 N

elongation produced Δ = 0.43

so

Δ = PL / AE

we substitute

0.43 = (66,700 × 125) / (256 × E)

0.43(256 × E) = (66,700 × 125)

110.08E = 8337500

E = 8337500 / 110.08

E = 75740.37 MPa

Therefore, the modulus of elasticity of the aluminum is 75740.37 MPa

4 0
3 years ago
The elastic settlement of an isolated single pile under a working load similar to that of piles in the group it represents, is p
Ganezh [65]

Answer:

The expected settlement for the pile group using the given information is 19.92mm or 0.79 inch

Explanation:

In this question, we are asked to calculate the expected settlement for the pole group given some information.

Please check attachment for complete solution and step by step explanation

3 0
3 years ago
Other questions:
  • A thick spherical pressure vessel of inner radius 150 mm is subjected to maximum an internal pressure of 80 MPa. Calculate its w
    9·1 answer
  • Overview In C, a string is simply an array of characters. We have used literal strings all along – the stuff in between the quot
    11·1 answer
  • The Hubble Space Telescope is an optical imaging telescope with extremely good angular resolution. Someone discovers an object t
    13·1 answer
  • How will the proposed study contribute to your career?*<br>(quantity Surveying​
    11·1 answer
  • Different metabolic control systems have different characteristic time scales for a control response to be achieved. Match the t
    6·1 answer
  • For laminar flow of air over a flat plate that has a uniform surface temperature, the curve that most closely describes the vari
    15·1 answer
  • How to Cancel prescription
    12·1 answer
  • Please help i will give brainilest
    12·2 answers
  • Determine the resistance of 100m of copper cable whose cross-sectional area is 1.5mm2​
    6·1 answer
  • The distribution of ground shaking around the fault
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!