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
katen-ka-za [31]
3 years ago
6

The top 3 most popular male names of 2017 are Oliver, Declan, and Henry according to babynames. Write a program that modifies th

e male_names set by removing a name and adding a different name. Sample output with inputs: 'Oliver' 'Atlas' { 'Atlas', 'Declan', 'Henry' } NOTE: Because sets are unordered, the order in which the names in male_names appear may differ from above.
Engineering
1 answer:
Flura [38]3 years ago
7 0

Answer:

The code is given below in Python with appropriate comments

Explanation:

# convert list to set

male_names = set(['Oliver','Declan','Henry'])

# get remove and add name from user

remove_name = input("Enter remove name: ")

add_name = input("Enter add name: ")

# remove name from set

male_names.remove(remove_name)

# add new name ij set

male_names.add(add_name)

# sort the set

a = sorted(male_names)

# print the set

print(a)

You might be interested in
What financial arguments could you use to justify your proposed
Gnoma [55]

The recommendation to segregate FLTs and the workers are as follows:-1)Reputation of warehouse:- To be in the market the reputation of warehouse should be good,it can only happen when the worker of that warehouse is happy with the management looks after worker external and internal affairs. There should be two pathways one for vehicle and other for walking in which both can’t use vice versa.2)High Profitability:- When there is no incident or accident happens between the FLTs and the workers in the warehouse then off course the worker will be regular at work then there will be high profit .3)Insurance premium:- If there is zero accident happens in the ware house then there will no claim, the company will be in the profit..

7 0
3 years ago
A hawser is wrapped two full turns around a bollard. By exerting an 80-lb force on the free end of the hawser, a dockworker can
Brut [27]

Answer:

μ=0.329, 2.671 turns.

Explanation:

(a)   ln(T2/T1)=μβ         β=angle of contact in radians

take T2 as greater tension value and T1 smaller, otherwise the friction would be opposite.

T2=5000 lb and T1=80 lb

we have two full turns which makes total angle of contact=4π  radians

μ=ln(T2/T1)/β=(ln(5000/80))/4π  

μ=0.329

(b) using the same relation as above we will now compute the angle of contact.

take greater tension as T2 and smaller as T1.

T2=20000 lb     T1=80 lb   μ=0.329

β=ln(20000/80)/0.329=16.7825 radians

divide the angle of contact by 2π to obtain number of turns.

16.7825/2π =2.671 turns

4 0
3 years ago
Tensile Strength (MPa) Number-Average Molecular Weight (g/mol)
IceJOKER [234]

Answer:

\mathbf{T_{S \infty } \ \approx 215.481 \ MPa}

\mathbf{M_n = 49163.56431  \ g/mol }

Explanation:

The question can be well structured in a table format as illustrated below:

Tensile Strength (MPa)            Number- Average Molecular Weight  (g/mol)

82                                                  12,700

156                                                 28,500

The tensile strength and number-average molecular weight for two polyethylene materials given above.

Estimate the number-average molecular weight that is required to give a tensile strength required above. Using the data given find TS (infinity) in MPa.

<u>SOLUTION:</u>

We know that :

T_S = T_{S \infty} - \dfrac{A}{M_n}

where;

T_S = Tensile Strength

T_{S \infty} = Tensile Strength (Infinity)

M_n = Number- Average Molecular Weight  (g/mol)

SO;

82= T_{S \infty} - \dfrac{A}{12700} ---- (1)

156= T_{S \infty} - \dfrac{A}{28500} ---- (2)

From equation (1) ; collecting the like terms; we have :

T_{S \infty} =82+ \dfrac{A}{12700}

From equation (2) ; we have:

T_{S \infty} =156+ \dfrac{A}{28500}

So; T_{S \infty} = T_{S \infty}

Then;

T_{S \infty} =82+ \dfrac{A}{12700} =156+ \dfrac{A}{28500}

Solving by L.C.M

\dfrac{82(12700) + A}{12700} =\dfrac{156(28500) + A}{28500}

\dfrac{1041400 + A}{12700} =\dfrac{4446000 + A}{28500}

By cross multiplying ; we have:

({4446000 + A})*  {12700} ={28500} *({1041400 + A})

(5.64642*10^{10} + 12700A) =(2.96799*10^{10}+ 28500A)

Collecting like terms ; we have

(5.64642*10^{10} - 2.96799*10^{10} ) =( 28500A- 12700A)

2.67843*10^{10}  = 15800 \ A

Dividing both sides by 15800:

\dfrac{ 2.67843*10^{10} }{15800} =\dfrac{15800 \ A}{15800}

A = 1695208.861

From equation (1);

82= T_{S \infty} - \dfrac{A}{12700} ---- (1)

Replacing A = 1695208.861 in the above equation; we have:

82= T_{S \infty} - \dfrac{1695208.861}{12700}

T_{S \infty}= 82 + \dfrac{1695208.861}{12700}

T_{S \infty}= \dfrac{82(12700) +1695208.861 }{12700}

T_{S \infty}= \dfrac{1041400 +1695208.861 }{12700}

T_{S \infty}= \dfrac{2736608.861 }{12700}

\mathbf{T_{S \infty } \ \approx 215.481 \ MPa}

From equation(2);

156= T_{S \infty} - \dfrac{A}{28500} ---- (2)

Replacing A = 1695208.861 in the above equation; we have:

156= T_{S \infty} - \dfrac{1695208.861}{28500}

T_{S \infty}= 156 + \dfrac{1695208.861}{28500}

T_{S \infty}= \dfrac{156(28500) +1695208.861 }{28500}

T_{S \infty}= \dfrac{4446000 +1695208.861 }{28500}

T_{S \infty}= \dfrac{6141208.861}{28500}

\mathbf{T_{S \infty } \ \approx 215.481 \ MPa}

We are to also estimate the number- average molecular weight that is required to give a tensile strength required above.

If the Tensile Strength (MPa) is 82 MPa

Definitely the average molecular weight will be = 12,700 g/mol

If the Tensile Strength (MPa) is 156 MPa

Definitely the average molecular weight will be = 28,500 g/mol

But;

Let us assume that the Tensile Strength (MPa) = 181 MPa for example.

Using the same formula:

T_S = T_{S \infty} - \dfrac{A}{M_n}

Then:

181 = 215.481- \dfrac{1695208.861 }{M_n}

Collecting like terms ; we have:

\dfrac{1695208.861 }{M_n} = 215.481-  181

\dfrac{1695208.861 }{M_n} =34.481

1695208.861= 34.481 M_n

Dividing both sides by 34.481; we have:

M_n = \dfrac{1695208.861}{34.481}

\mathbf{M_n = 49163.56431  \ g/mol }

5 0
3 years ago
Car B is traveling a distance dd ahead of car A. Both cars are traveling at 60 ft/s when the driver of B suddenly applies the br
vagabundo [1.1K]

Answer:

Explanation:

Using the kinematics equation v = v_o + a_ct to determine the velocity of car B.

where;

v_o = initial velocity

a_c = constant deceleration

Assuming the constant deceleration is = -12 ft/s^2

Also, the kinematic equation that relates to the distance with the time is:

S = d + v_ot + \dfrac{1}{2}at^2

Then:

v_B = 60-12t

The distance traveled by car B in the given time (t) is expressed as:

S_B = d + 60 t - \dfrac{1}{2}(12t^2)

For car A, the needed time (t) to come to rest is:

v_A = 60 - 18(t-0.75)

Also, the distance traveled by car A in the given time (t) is expressed as:

S_A = 60  * 0.75 +60(t-0.75) -\dfrac{1}{2}*18*(t-0.750)^2

Relating both velocities:

v_B = v_A

60-12t = 60 - 18(t-0.75)

60-12t =73.5 - 18t

60- 73.5 = - 18t+ 12t

-13.5 =-6t

t = 2.25 s

At t = 2.25s, the required minimum distance can be estimated by equating both distances traveled by both cars

i.e.

S_B = S_A

d + 60 t - \dfrac{1}{2}(12t^2) = 60  * 0.75 +60(t-0.75) -\dfrac{1}{2}*18*(t-0.750)^2

d + 60 (2.25) - \dfrac{1}{2}(12*(2.25)^2) = 60  * 0.75 +60((2.25)-0.75) -\dfrac{1}{2}*18*((2.25)-0.750)^2

d + 104.625 = 114.75

d = 114.75 - 104.625

d = 10.125 ft

3 0
3 years ago
The substance is steam (H2O). NOTE: The purpose of this problem is to illustrate that there are conditions where water vapor is
Gennadij [26K]

Answer:

See the attached pictures for detailed answer.

Explanation:

See the attached pictures for step by step explanation.

7 0
3 years ago
Other questions:
  • Water flows through two smooth pipes with the same diameter and length as shown below. ipe is twice that through the first-pipe.
    12·1 answer
  • How fast is a 2012 nissan sentra<br>speed and acceleration ​
    15·1 answer
  • A fluid of specific gravity 0.96 flows steadily in a long, vertical 0.71-in.-diameter pipe with an average velocity of 0.90 ft/s
    5·2 answers
  • Your coworker was impressed with the efficiency you showed in the previous problem and would like to apply your methods to a pro
    5·1 answer
  • You are given a C program "q2.c" as below. This program is used to calculate the average word length for a sentence (a string in
    5·1 answer
  • Which of the following identifies one factor that causes conventional tillage to actually be good for the environment?
    7·1 answer
  • P9.28 A large vacuum tank, held at 60 kPa absolute, sucks sea- level standard air through a converging nozzle whose throat diame
    12·1 answer
  • 3. If nothing can ever be at absolute zero, why does the concept exist?
    8·1 answer
  • How pine are processed ????
    10·1 answer
  • A transformer has 300,000 windings in its primary coil and uses 12,000V AC input. (4 points) How many windings would be needed t
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!