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
A __________ is an added note showing additional or more specific information.
xxMikexx [17]

Answer:

awnsers should be added to know to show additional

8 0
3 years ago
Which of the following positions would be responsible for attaching I-beams to a crane?
prohojiy [21]

Answer:

Rigger

Explanation:

<em> work as one</em>

4 0
2 years ago
An unknown immiscible liquid seeps into the bottom of an open oil tank. Some measurements indicate that the depth of the unknown
barxatty [35]

Answer:

The specific weight of unknown liquid is found to be 15 KN/m³

Explanation:

The total pressure in tank is measured to be 65 KPa in the tank. But, the total pressure will be equal to the sum of pressures due to both oil and unknown liquid.

Total Pressure = Pressure of oil + Pressure of unknown liquid

65 KPa = (Specific Weight of oil)(depth of oil) + (Specific Weight of unknown liquid)(depth of unknown liquid)

65 KN/m² = (8.5 KN/m³)(5 m) + (Specific Weight of Unknown Liquid)(1.5 m)

(Specific Weight of Unknown Liquid)(1.5 m) = 65 KN/m² - 42.5 KN/m²

(Specific Weight of Unknown Liquid) = (22.5 KN/m²)/1.5 m

<u>Specific Weight of Unknown Liquid = 15 KN/m³</u>  

4 0
3 years ago
• Build upon the results of problem 3-85 to determine the minimum factor of safety for fatigue based on infinite life, using the
Rudik [331]

Answer:

minimum factor of safety for fatigue is = 1.5432

Explanation:

given data

AISI 1018 steel cold drawn as table

ultimate strength Sut = 63.800 kpsi

yield strength Syt = 53.700 kpsi

modulus of elasticity E = 29.700 kpsi

we get here

\sigma a = \sqrt{(\sigma a \times kb)^2+3\times (za\times kt)^2}    ...........1

here kb and kt = 1 combined bending and torsion fatigue factor

put here value and we get

\sigma a =  \sqrt{(12 \times 1)^2+3\times (0\times 1)^2}  

\sigma a = 12 kpsi

and

\sigma m = \sqrt{(\sigma m \times kb)^2+3\times (zm\times kt)^2}     ...........2

put here value and we get

\sigma m = \sqrt{(-0.9 \times 1)^2+3\times (10\times 1)^2}  

\sigma m = 17.34 kpsi

now we apply here goodman line equation here that is

\frac{\sigma m}{Sut} +  \frac{\sigma a}{Se} = \frac{1}{FOS}     ...................3

here Se = 0.5 × Sut

Se = 0.5 × 63.800 = 31.9 kspi

put value in equation 3 we get

\frac{17.34}{63.800} +  \frac{12}{31.9} = \frac{1}{FOS}  

solve it we get

FOS = 1.5432

6 0
3 years ago
Determine the nature of the following cycle (reversible, irreversible, or impossible): a refrigeration cycle draws heat from a c
vlabodo [156]

Answer:

Impossible.

Explanation:

The ideal Coefficient of Performance is:

COP_{i} = \frac{250\,K}{300\,K-250\,K}

COP_{i} = 5

The real Coefficient of Performance is:

COP_{r} = \frac{950\,kJ-70\,kJ}{70\,kJ}

COP_{r} = 12.571

Which leads to an absurds, since the real Coefficient of Performance must be equal to or lesser than ideal Coefficient of Performance. Then, the cycle is impossible, since it violates the Second Law of Thermodynamics.

6 0
3 years ago
Other questions:
  • Mike is involved in developing the model building codes that various states and local authorities in the United States adopt. He
    6·1 answer
  • 2. The initially velocity of the box and truck is 60 mph. When the truck brakes such that the deceleration is constant it takes
    12·1 answer
  • Write down the equation for the stoichiometric combustion of propane (C3H8).
    6·1 answer
  • Given that the debouncing circuit is somewhat expensive in terms of hardware (2 NAND gates, 2 resistors, and a double-pole, sing
    9·1 answer
  • Table 1(a) shows the marks obtained by 40 students in an examination
    11·1 answer
  • W<br>n só<br>i<br>Eo<br>E<br>find the transfer function​
    9·1 answer
  • You leave your house at 5:02 PM and run 20 yards down the street. You don't realize that you forgot your Wallet back at home and
    11·1 answer
  • 3. What is special about beryllium-copper alloy tools?
    6·2 answers
  • Why is electricity considered a secondary source of energy
    6·1 answer
  • 17
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!