answer.
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
N76
3 months 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:
Viktor [391]3 months ago
7 0

Answer:

The Python code is provided below with suitable comments

Explanation:

# convert list to set

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

# get name for removal and addition from user

remove_name = input("Enter remove name: ")

add_name = input("Enter add name: ")

# remove specified name from set

male_names.remove(remove_name)

# add new name to set

male_names.add(add_name)

# sort the resulting set

a = sorted(male_names)

# output the sorted set

print(a)

You might be interested in
1. Mark ‘N’ if a wrong type of units is used. Mark ‘Y’ otherwise. (1 point each)
pantera1 [306]

Response:

bsbsdbsd

Clarification:

7 0
2 months ago
Water flows steadily through a horizontal nozzle, discharging to the atmosphere. At the nozzle inlet the diameter is D1; at the
mote1985 [299]
The inlet gauge pressure must be 61.627 Psi.
4 0
2 months ago
The critical resolved shear stress for iron is 27 MPa (4000 psi). Determine the maximum possible yield strength for a single cry
grin007 [323]

Answer:

The following represents the answer.

Explanation:

Calculation for the maximum yield strength of a single crystal of Fe subjected to tension can be found in the attached image.

The maximum yield strength value is 54 MPa.

7 0
3 months ago
A long, horizontal, pressurized hot water pipe of 15cm diameter passes through a room where the air temperature is 24degree C. T
Daniel [329]
The heat transfer rate to the surrounding air per meter of pipe length is quantified as 521.99 W/m. Given the negligible radiation losses from the pipe, convection remains the sole method of heat transfer. The rate of heat transfer via convection can be defined as such, using the specified heat transfer coefficient of 10.45 for air and calculating the surface area of the pipe.
5 0
2 months ago
Universal Containers (UC) has a requirement to expose a web service to their business partners. The web service will be used to
pantera1 [306]

Answer:

"- Adjust the Orders object's sharing settings to Private in the Org-Wide Defaults

_Assign a separate Salesforce login to each partner, ensuring API access is enabled on their profile

-Create a custom Apex web service utilizing the "With Sharing" clause"

Explanation:

Universal Containers (UC) needs to set up a web service for their business partners. This web service will permit each partner to access UC's Salesforce instance to check the status of orders. Access should be limited to orders for which the partner is the designated fulfillment vendor. The Architect prefers a custom API solution instead of standard APIs. What three design factors should be considered by the Architect to ensure the solution's data security?

A. Use Dynamic SOQL to query the Orders object based on fulfillment ID.

B. Adjust the Orders object's sharing settings to Private in the Org-Wide Defaults.

C. Provide each partner with their individual Salesforce login set to API Enabled on the profile.

D. Develop a custom Apex web service that requires a fulfillment ID input attribute.

E. Implement a custom Apex web service employing the "With Sharing" clause.

The subsequent points should follow up on the inquiry

To ensure data security, the Architect should take into account the following design strategies

"- Set Orders object's sharing settings to Private within the Org-Wide Defaults

_Assign each partner a distinct Salesforce login with API access enabled on their profile

-Create a custom Apex web service utilizing the "With Sharing" clause"

There’s a need to establish some sharing rule between the architect and the user

3 0
2 months ago
Other questions:
  • Consider 1.0 kg of austenite containing 1.15 wt% C, cooled to below 727C (1341F). (a) What is the proeutectoid phase? (b) How
    5·1 answer
  • A manometer measures a pressure difference as 40 inches of water. Take the density of water to be 62.4 lbm/ft3.What is this pres
    13·1 answer
  • Write multiple if statements. If car_year is 1969 or earlier, print "Few safety features." If 1970 or later, print "Probably has
    12·1 answer
  • A test machine that kicks soccer balls has a 5-lb simulated foot attached to the end of a 6-ft long pendulum arm of negligible m
    12·1 answer
  • An air duct heater consists of an aligned array of electrical heating elements in which the longitudinal and transverse pitches
    5·1 answer
  • A well-insulated rigid tank contains 1.5 kg of a saturated liquid–vapor mixture of water at 200 kPa. Initially, three-quarters o
    10·2 answers
  • At what forward voltage does a diode conduct a current equal to 10,000 Is ? In terms of Is , what current flows in the same diod
    14·1 answer
  • In a production facility, 1.6-in-thick 2-ft × 2-ft square brass plates (rho = 532.5 lbm/ft3 and cp = 0.091 Btu/lbm·°F) that are
    13·1 answer
  • Using Java..
    6·1 answer
  • A horizontal curve is to be designed for a two-lane road in mountainous terrain. The following data are known: Intersection angl
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!