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
zavuch27 [327]
3 years ago
9

The following program includes fictional sets of the top 10 male and female baby names for the current year. Write a program tha

t creates: A set all_names that contains all of the top 10 male and all of the top 10 female names. A set neutral_names that contains only names found in both male_names and female_names. A set specific_names that contains only gender specific names. Sample output for all_names: {'Michael', 'Henry', 'Jayden', 'Bailey', 'Lucas', 'Chuck', 'Aiden', 'Khloe', 'Elizabeth', 'Maria', 'Veronica', 'Meghan', 'John', 'Samuel', 'Britney', 'Charlie', 'Kim'}

Engineering
2 answers:
yuradex [85]3 years ago
4 0

Answer:

Please see attachment

Explanation:

Please see attachment

otez555 [7]3 years ago
3 0

Answer:

Define Variables and Use List methods to do the following

Explanation:

#<em>Conjoins two lists together</em>

all_names = male_names.union(female_names)

#<em>Finds the names that appear in both lists, just returns those</em>

neutral_names = male_names.intersection(female_names)

#<em>Returns names that are NOT in both lists</em>

specific_names = male_names.symmetric_difference(female_names)

You might be interested in
What is the fastest motorcycle in the world ?
givi [52]

Answer:

Kawasaki Ninja H2R – top speed: 222 mph. This one is another beast in the form of a bike. ...

MTT Turbine Superbike Y2K – top speed: 227 mph. This bike is one of the most powerful production motorcycles. ...

Suzuki Hayabusa – top speed: 248 mph. 1340cc

8 0
3 years ago
Read 2 more answers
Find E[x] when x is sum of two fair dice?
Ksenya-84 [330]

Answer:

When two fair dice are rolled, 6×6=36 observations are obtained.

P(X=2)=P(1,1)=

36

1

​

P(X=3)=P(1,2)+P(2,1)=

36

2

​

=

18

1

​

P(X=4)=P(1,3)+P(2,2)+P(3,1)=

36

3

​

=

12

1

​

P(X=5)=P(1,4)+P(2,3)+P(3,2)+P(4,1)=

36

4

​

=

9

1

​

P(X=6)=P(1,5)+P(2,4)+P(3,3)+P(4,2)+P(5,1)=

36

5

​

P(X=7)=P(1,6)+P(2,5)+P(3,4)+P(4,3)+P(5,2)+P(6,1)=

36

6

​

=

6

1

​

P(X=8)=P(2,6)+P(3,5)+P(4,4)+P(5,3)+P(6,2)=

36

5

​

P(X=9)=P(3,6)+P(4,5)+P(5,4)+P(6,3)=

36

4

​

=

9

1

​

P(X=10)=P(4,6)+P(5,5)+P(6,4)=

36

3

​

=

12

1

​

P(X=11)=P(5,6)+P(6,5)=

36

2

​

=

18

1

​

P(X=12)=P(6,6)=

36

1

​

Therefore, the required probability distribution is as follows.

Then, E(X)=∑X

i

​

⋅P(X

i

​

)

=2×

36

1

​

+3×

18

1

​

+4×

12

1

​

+5×

9

1

​

+6×

36

5

​

+7×

6

1

​

+8×

36

5

​

+9×

9

1

​

+10×

12

1

​

+11×

18

1

​

+12×

36

1

​

=

18

1

​

+

6

1

​

+

3

1

​

+

9

5

​

+

6

5

​

+

6

7

​

+

9

10

​

+1+

6

5

​

+

18

11

​

+

3

1

​

=7

E(X

2

)=∑X

i

2

​

⋅P(X

i

​

)

=4×

36

1

​

+9×

18

1

​

+16×

12

1

​

+25×

9

1

​

+36×

36

5

​

+49×

6

1

​

+64×

36

5

​

+81×

9

1

​

+100×

12

1

​

+121×

18

1

​

+144×

36

1

​

=

9

1

​

+

2

1

​

+

3

4

​

+

9

25

​

+5+

6

49

​

+

9

80

​

+9+

3

25

​

+

18

121

​

+4

=

18

987

​

=

6

329

​

=54.833

Then, Var(X)=E(X

2

)−[E(X)]

2

=54.833−(7)

2

=54.833−49

=5.833

∴ Standard deviation =

Var(X)

​

=

5.833

​

=2.415

4 0
2 years ago
Hi I don't know of yall remeber me, but I'm Jadin aka J. I am looking for my friend group, that I have missed but can't find cau
kirill [66]

Answer:

The young lady was his daughter.The shoemaker was frightened when he saw that she wants to sit near him and took his knife to frighten her and leave him alone to do his work

Explanation:

could uh name them since if i know any i would surely tryin help

7 0
2 years ago
generally compound curves are not filtered recommended for A. Road B. water way C. underground road D. rail way​
vfiekz [6]

Answer:

C. underground road

Explanation:

Generally compound curves are not filtered and recommended for use in an underground road. However, they are best used in the road, water way, and rail way.

3 0
3 years ago
Create a flowchart that describes the following algorithm and then write Python code to implement the algorithm. Write the Pytho
Naya [18.7K]

Answer:

<em>Python code is as follows: </em>

********************************************************************************

#function to get number up to any number of decimal places

def toFixed(value, digits):

return "%.*f" % (digits, value)

print("Enter the price: ", end='', flush=True) #prompt for the input of price

price = float(input()) #taken input

totalCost = price + 0.05 * price #calculating cost

print("Total Cost after the sales tax of 5% is applied: " + toFixed(totalCost,2)) #print and output totalCost

************************************************************************************

3 0
3 years ago
Other questions:
  • Unit for trigonometric functions is always "radian". 1. 10 points: Do NOT submit your MATLAB code for this problem (a) Given f(x
    9·1 answer
  • Suppose there is a mobile application that can run in two modes: Lazy or Eager. In Lazy Mode, the execution time is 3.333 second
    11·1 answer
  • When the Moon is in the position shown, how would the Moon look to an observer on the North Pole?
    11·1 answer
  • A(94,0,14) B(52,56,94) C(10,6,48) D(128,64,10)
    6·1 answer
  • Once you get the answer correct first i will mark you brainliest!!
    15·2 answers
  • Find the capacitance reactance of a 0.1 micro frequency capacitor 50Hz and at 200Hz​
    9·1 answer
  • (a) A non-cold-worked 1040 steel cylindrical rod has an initial length of 100 mm and initial diameter of 7.50 mm. is to be defor
    7·1 answer
  • Who wanna rp?????????????????????????!
    15·1 answer
  • All of these are true about a magnesium part EXCEPT that it:
    8·1 answer
  • The most important reason to wear your seat belt is to protect you from:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!