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
Only respond if your the person im talkin to
bagirrra123 [75]

Answer: um wuh anyways thxs for the points!

Explanation: ....:/

5 0
3 years ago
Which of the following factors does not promote safety in the shop?
sergey [27]
“Thinking about pleasant things to pass the time” would not promote safety in the shop because it would be taking the focus away from important tasks, which in turn decreases safety.
6 0
3 years ago
please help me answer 3 of these questions in complete sentences. this is ccrd 1 related to jobs and college. thanks so much if
Kitty [74]

Answer:

1. Work is a driving force of identity in your life, whether its because it influences you due to the time spent there. Or its truly a passion of yours.

2. Two main aspects of identity development are self-concept and self-esteem

3. Based on you obviously

Hope this helped!

Explanation:

5 0
3 years ago
Create a series of eight successive displacements that would program a robot to move in an octagonal path that is as close as yo
Komok [63]

Answer:

bts biot bts biot jungkukkk

jungkukkkbiot

Explanation:

bts biot bts biot jungkukkk

jungkukkkbiot

5 0
2 years ago
A hot brass plate is having its upper surface cooled by impinging jet of air at temperature of 15°C and convection heat transfer
gulaghasi [49]

Answer:

809.98°C

Explanation:

STEP ONE: The first step to take in order to solve this particular Question or problem is to find or determine the Biot value.

Biot value = (heat transfer coefficient × length) ÷ thermal conductivity.

Biot value = (220 × 0.1)÷ 110 = 0.2.

Biot value = 0.2.

STEP TWO: Determine the Fourier number. Since the Biot value is greater than 0.1. Tis can be done by making use of the formula below;

Fourier number = thermal diffusivity × time ÷ (length)^2.

Fourier number = (3 × 60 × 33.9 × 10^-6)/( 0.1)^2 = 0.6102.

STEP THREE: This is the last step for the question, here we will be calculating the temperature of the center plane of the brass plate after 3 minutes.

Thus, the temperature of the center plane of the brass plane after 3 minutes = (1.00705) (0.89199) (900- 15) + 15.

= > the temperature of the center plane of the brass plane after 3 minutes = 809.98°C.

5 0
2 years ago
Other questions:
  • Consider a fully developed laminar flow in a circular pipe. The velocity at R/2 (midway between the wall surface and the centerl
    6·1 answer
  • A level loop began and closed on BM_A (elevation = 823.368 ft). The plus and minus sights were kept approximately equal. Reading
    11·1 answer
  • An iron-carbon alloy initially containing 0.286 wt% C is exposed to an oxygen-rich and virtually carbon-free atmosphere at 1200°
    7·1 answer
  • The value 100 MW is equivalent to (a) 100×10^6 w (b) 100 x 10^-6 w (c) 100 x 10^-3 w (d) 100 x 10^3 w
    14·1 answer
  • URGENT PLEASE HELP!!!
    11·1 answer
  • ?Why the efficiency of Class A amplifier is very poor​
    11·1 answer
  • How do you build a house.
    15·1 answer
  • EggzOG43199 <br><br><br><br> :) it has to be more than 20 characters so I'm just saying this
    5·1 answer
  • What is required when setting up a smart phone as a WIFI hotspot?
    11·1 answer
  • Why are plastics known as synthetic materials?​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!