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
lutik1710 [3]
4 years ago
9

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:
Aleks [24]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
Water is to be boiled at sea level in a 30-cm-diameter stainless steel pan placed on top of a 3-kW electric burner. If 60 percen
hichkok12 [17]

Answer:

mevaporation=˙Qhfg=1. 8 kJ /s2269. 6 kJ /kg=0 . 793×10−3kg/ s=2. 855 kg /h

Explanation:

The properties of water at 1 atm and thus at the saturation temperature of 100C are hfg =2256.4 kJ/kg (Table A-4). The net rate of heat transfer to the water is ˙Q=0 . 60×3 kW=1 . 8 kWNoting that it takes 2256.4 kJ of energy to vaporize 1 kg of saturated liquid water, therate of evaporation of water is determined to be mevaporation=˙Qhfg=1. 8 kJ /s2269. 6 kJ /kg=0 . 793×10−3kg/ s=2. 855 kg /h

3 0
3 years ago
what are 3 things you would like to get out of an ethical engineering class? and why? about a page explanation would do fine.
poizon [28]

Answer:

I don't know

Explanation:

i don't know

8 0
3 years ago
Read 2 more answers
Given a reservoir watershed of 22 square miles, and assuming a
saveliy_v [14]

Answer:

308 acre-ft of water

Explanation:

Given:

Area of the watershed = 22 square miles

Depth of Rainfall = 0.75 in =\frac{\textup{0.75}}{\textup{12}}=0.0625 ft

Percentage rainfall falling in reservoir as runoff = 35%

Now,

1 square mile = 640 acre

Thus,

22 square miles = 22 × 640 = 14,080 acres

Thus,

The total volume of rainfall = Area of watershed × Depth of the rainfall

or

The total volume of rainfall = 14,080 acres × 0.0625 ft = 880 acre-ft

also,

only 35% of the total rainfall is contributing as runoff

thus,

Runoff = 0.35 × 880 acre-ft = 308 acre-ft of water

8 0
3 years ago
When you are configuring data deduplication, you must choose a usage type for the volume you are configuring. Which of the follo
Finger [1]

Answer:

1. General purpose file server.

2. Virtual Desktop Infrastructure Server.

3. Virtualized Backup Server.

All except : Database server

Explanation:

As a simple definition, we can tell, data deduplication is an elimination of redundant data in data set and storing only one copy of the same data. It is done by identifying double byte patterns through data analysis, removing double data and replacing it with reference pointed to stored, single piece of data.

6 0
4 years ago
Kieran and Kurt spend most of their day performing physical labor, aligning materials, and inspecting projects for quality and s
xxMikexx [17]

Answer:

Kieran is a Carpenter, and Kurt is a Drafter

Explanation:

Among all the professions listed, Kurt can only possibly be a Drafter.  A Drafter is an engineering technician who makes detailed technical drawings or plans for machinery, buildings, electronics, infrastructure, sections, etc. Drafters make use of computer software and manual sketches to convert the designs, plans, and layouts of engineers and architects into a set of technical drawings. All the other professions will at some point need for the professional to stand and work at an height above the ground except for a drafter, whose feet will remain on the ground at almost all times.

5 0
3 years ago
Read 2 more answers
Other questions:
  • The displacement volume of an internal combustion engine is 2.2 liters. The processes within each cylinder of the engine are mod
    13·1 answer
  • Explain the conductivity results observed for ionic compounds in the solid state and in aqueous solution.i.Solid ionic compounds
    12·1 answer
  • Estimate the magnitude of the force, in lbf, exerted on a 12-lb goose in a collision of duration 10^-3s with an airplane taking
    15·1 answer
  • The outer surface of a spacecraft in space has an emissivity of 0.6 and an absorptivity of 0.2 for solar radiation. If solar rad
    12·1 answer
  • (a) Consider a germanium semiconductor at T 300 K. Calculate the thermal equilibrium electron and hole concentrations for (i) Nd
    7·1 answer
  • I don’t know the answer to this question
    9·2 answers
  • What energy type is represented in the picture?
    6·2 answers
  • Compute the theoretical density of ZnS given that the Zn-S distance and bond angle are 0.234 nm and 109.5o, respectively. The at
    6·1 answer
  • Some wood finishing materials are volatile. This means that they
    10·1 answer
  • Which is a medium that sound can travel through?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!