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
galben [10]
4 years ago
15

Write a python program to apply this:

Engineering
1 answer:
lakkis [162]4 years ago
8 0

Answer:

# Initialize a dictionary with the keys

contestants = {"Darci Lynne":0, "Angelica Hale":0, "Angelina Green":0};

# Repeatedly prompt the user for a contestant name to vote for

while True:

 

  # Prompting user for contestant name

  cName = input("Enter contestant name to vote: ");

 

  # Checking for Done

  if cName.lower() == "done":

      break;

 

  # Checking in dictionary

  if cName in contestants.keys():

      # Updating vote value

      contestants[cName] += 1

  # New entry

  else:

      contestants[cName] = 1

 

# Printing header

print("\n%-20s %-15s\n" %("Contestant Name", "Votes Casted"))

# Printing results

for contestant in contestants:

  print("%-23s %-15d" %(contestant, contestants[contestant]))

You might be interested in
Discuss the impact of the changing urban center. Include the impacts on political, economic, and social roles and opportunities.
KengaRu [80]

Answer:

The 21st century world have been earmarked with great influx of people to the urban centre,the notion of gender equality and female education have also made most traditional roles in the family changing.Before now,wives we're known for their full independence on their husband who is considered the bread winner.

Inspite of the growth of of the urban centre the availability of resources have dwindled,resulting in the surge of unemployment in many urban centre,the political entity of the society which is the government have serious challenging in managing the various threat posed by overpopulation, unemployment results in the decrease of standard of living of person and family,to cater for this family have to change their roles,wives now work to support the husband.

Explanation:

6 0
3 years ago
7.35 and 7.36 For the beam and loading shown, (a) draw the shear and bending-moment diagrams, (b) determine the maximum absolute
Crank

Maximum absolute values of the shear = 28 KN

Maximum absolute values of bending moment = 5.7 KN.m

<h3>How to draw Shear Force and Bending Moment Diagram?</h3>

A) We can see the beam loaded in the first image attached.

For the shear diagram, let us calculate the shear from point load to point load.

From A to C, summing vertical to zero gives; ∑fy = 0: -20 - V = 0

V = -20 KN

From C to D, summing vertical to zero gives; ∑fy = 0: -20 + 48 - V = 0

V = 28 KN

From D to E, summing vertical to zero gives; ∑fy = 0: -20 + 48 - 20 - V = 0

V = 8 KN

From E to B, summing vertical to zero gives; ∑fy = 0: -20 + 48 - 20 - 20 - V = 0

V = -12 KN

For the bending moment diagram, let us calculate the bending moment from point load to point load.

At point A, the bending moment would be zero. Thus, M_A = 0 KN.m

At point C, taking moment about point C and equating to zero gives;

M_C = 0. Thus; 20(0.225) + M = 0

M = -4.5 KN.m

At point D, taking moment about point D and equating to zero gives;

M_D = 0. Thus; 20(0.525) - 48(0.3) + M = 0

M = 3.9 KN.m

At point E, taking moment about point E and equating to zero gives;

M_D = 0. Thus; 20(0.75) - 48(0.525) + 20(0.225) + M = 0

M = 5.7 KN.m

At point B, taking moment about point E and equating to zero gives;

M_E = 0. Thus; 20(1.05) - 48(0.825) + 20(0.525) + (20 * 0.3) + M = 0

M = 2.1 KN.m

2) From the attached diagrams, we can deduce that;

Maximum absolute values of the shear = 28 KN

Maximum absolute values of bending moment = 5.7 KN.m

Read more about shear force & bending moment diagram at; brainly.com/question/14834487

#SPJ1

4 0
2 years ago
Where are the ar manufacturers not fitting the engine in the high end sport cars
fomenos

Answer:

it depends on the but i would recommend check in the front next to the turbo intake.

8 0
3 years ago
Is EPA is the organization that was formed to ensure safe and health working conditions for workers by setting and enforcing sta
mr_godi [17]
Let me search this up
3 0
3 years ago
An ideal gas undergoes two processes: one frictionless and the other not. In both the cases, the gas is initially at 200 ℉ and 1
Zarrin [17]

Answer:

The process which has friction

Explanation:

The entropy is simply the change in the state of the things or the molecules in the system. It is simply the change in the energy of the system with a focus on the atoms in the system. This is also known as the internal energy of the system and is given the symbol, G. The friction contributes to the change in the energy of the system. This is because friction generates another form of energy - that is heat energy. This energy causes the internal temperature id the system to increase. Hence the greater change in the temperature.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Using Von Karman momentum integral equation, find the boundary layer thickness, the displacement thickness, the momentum thickne
    14·1 answer
  • Consider flow in between two parallel plates located a distance H from each other. Fluid flow is driven by the bottom plate movi
    15·1 answer
  • the ____ method is the safest turning technique to use as it does not expose your hands to the airbags deployment area
    15·1 answer
  • What is productivity as it relates to labor?
    11·1 answer
  • How do i get my camera to work in the app, i just got a new phone and it won’t pull up the camera
    14·1 answer
  • Electrical strain gauges were applied to a notched specimen to determine the stresses in the notch. The results were εx=0.0019 a
    13·1 answer
  • Explain why change is inevitable in complex systems and give examples (apart from prototyping and incremental delivery) of softw
    6·1 answer
  • What is the ideal cooling system for low horsepower motor? For example1hp motor
    9·1 answer
  • Four subjects civil engineers need to study​
    12·1 answer
  • Crank OA rotates with uniform angular velocity 0  4 rad/s along counterclockwise. Take OA= r= 0.5
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!