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]
4 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]4 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
At high altitude air temperature is low and ice formation on wings can cause serious issues for air crafts.A solution to this pr
Hoochie [10]

Answer:

Check the explanation

Explanation:

The average heat Flux which sometimes can be called heat flux density, heat flow rate intensity or heat-flow density refers to the flow of energy per unit of area per unit of time. the units in SI are computed as watts per square metre (W.m^{-2}). It has both a magnitude as well as a direction and so it is a vector quantity.

The full step by step explanation to the question above can be seen in the attached image below.

5 0
3 years ago
Which atom bond in atomic interaction combines electrons, filling its valence zone a) Van der Vaals bond; b) a covalent bond; c)
Setler79 [48]

Answer: Covalent bond

Explanation: Covalent bond is the bond that gets created when there is a sharing of electrons among atoms  and hence creating atomic interaction. The bond formed is from the shared pair because they allow the atoms or ions to achieve stability by completely filling the outer shell of the electron and thus form the covalent bond .Therefore, the correct option is the option(b) .

7 0
3 years ago
5. If a pilot wants to accelerate, which force
Murljashka [212]

Answer:

Thrust

Explanation:

If the pilot wants to accelerate the aircraft, the aircraft needs more power to produce more thrust. The aircraft will go faster when the amount of thrust is greater than the amount of drag.

3 0
3 years ago
A radio antenna 326 m in diameter receives a radio signal from a very distant object at perpendicular incidence. The radio signa
Fed [463]

Assume that the antenna absorbs all the radiation that falls on the disk and calculate the power in Watts received by the antenna are the (a) 3.0e-8.

<h3>What is perpendicular with examples?</h3>

Two awesome traces intersecting every different at 90° or a proper perspective are referred to as perpendicular traces. Here, AB is perpendicular to XY due to the fact AB and XY intersect every different at 90°. The  traces are parallel and do now no longer intersect every different. They can in no way be perpendicular to every different.

Read more about the perpendicular :

brainly.com/question/1202004

#SPJ1

6 0
2 years ago
technician A says that a technician can progress to different jobs within the industry. Technician B says that career in the aut
Alex777 [14]

Answer:

Both A and B

Explanation:

They both are right

4 0
3 years ago
Other questions:
  • Suppose we include the lead resistance in the calculation of temperature for a class A RTD. If R3 = 1000 ohms, Ra = 18 ohms, V0
    12·1 answer
  • A 3-kg block rests on top of a 2-kg block supported by, but not attached to, a spring of constant 40 N/m. The upper block is sud
    14·2 answers
  • What is the reason for the development of new construction of materials for human use? (Select all that apply.)
    12·1 answer
  • What material has the highest strength to weight ratio?
    9·2 answers
  • A load P is applied horizontally while the other end is fixed to a structure. A load P is applied horizontally while the other e
    6·1 answer
  • Based on parameters such as the materials shear modulus, diameter of the wire, mean coil diameter, and number of active coils (a
    11·1 answer
  • An important material for advanced electronic technologies is the pure silicon.a)-True b)-False
    9·1 answer
  • In 1903, Aegidius Elling of Norway designed and built an 11-hp gas turbine that used steam injection between the combustion cham
    13·1 answer
  • In a residence, the control of a room's baseboard electric resistance heating system would be accomplished automatically using a
    12·2 answers
  • The engineer must place a catch basin at the north west corner of the yard of a subdivision lot. The catchment area will be calc
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!