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
How much does it cost to repair a broken train? (Fill in the blanks)
Lana71 [14]
900,000 dollors muny
8 0
2 years ago
Which statement is true for the relay logic diagram shown below?
Inessa [10]
Sorry can’t answer without seeing the diagram
3 0
3 years ago
9. To forward bias an NPN transistor, the
murzikaleks [220]

Answer:

a. the base must be more positive than the emitter

Explanation:

A transistor can be defined as a semiconductor component that is used to control the flow of voltage or current and as a gate (switch) for electronic signals. Thus, a transistor allows for the amplification, control and generation of electronic signals in a circuit. The three (3) basic parts of a transistor are; base, emitter and collector.

Basically, there are two (2) main types of transistor and these are;

1. PNP transistor.

2. NPN transistor.

Biasing of a transistor can be defined as the process of providing the controlled amount of direct current (DC) voltage or current conditions so as to enable the transistor amplify the alternating current (AC) input signal correctly.

Hence, to forward bias an NPN transistor, the base must be more positive than the emitter because the majority carriers are electrons which are moved from the n-type region to the p-type region while the minority carriers are holes.

This ultimately implies that, for an NPN transistor to conduct current in milliamps, its base-emitter junction must be forward biased.

4 0
3 years ago
the left rear brake drum is scored, but the right rear drum looks as good as new. technician a says the left-side drum should be
Romashka-Z-Leto [24]

Technician b is correct because the left rear brake drum is scored, but the right rear drum looks as good as new then both sides should be remachined to a similar diameter.

A brake drum is a revolving cylinder-shaped component that is friction-activated by a set of shoes or pads pressing outward against it. Drum brakes are brakes where shoes are pressed against the inner surface of the drum. Drum brakes are frequently used at the rear. Compared to disc brakes, these brakes have more parts and are more difficult to maintain, but they cost less to make and are simple to add an emergency braking mechanism. The front and rear brakes are standard equipment on all automobiles. Your car may have a "disc brake" system on all four wheels, a "drum brake" system on all four wheels, or a combination of the two. Typically, the front brakes of your car have a disc system, and the rear brakes have a drum system.

Learn more about brake drum here:

brainly.com/question/14937026

#SPJ4

7 0
1 year ago
does anyone know how to get into an iPhone with an apple ID and password i bought an iPhone 2nd hand and i cant get into the pho
ELEN [110]
ANSWER:
Your best bet would be to either contact apple support or to factory reset the iphone
5 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following statements is true? Entropy has the unit of (A) Heat (B) Work (C) Energy (D) Heat capacity (E) Temperatur
    13·1 answer
  • Water flows at low speed through a circular tube with inside diameter of 2 in. A smoothly contoured body of 1.5 in. diameter is
    10·1 answer
  • Refrigerant 134a is the working fluid in a vaporcompression heat pump that provides 35 kW to heat a dwelling on a day when the o
    14·1 answer
  • A heat engine is a device able to transform work into heat.<br> a. True<br> b. False
    13·1 answer
  • Determine the enthalpy, volume and density of 1.0 kg of steam at a pressure of 0.5 MN/m2 and with a dryness fraction of 0.96
    12·1 answer
  • Around the 1760s what allowed for more supplies to be moved around?
    13·1 answer
  • Why the colours of many Airplane are white?<br>​
    11·1 answer
  • Answer: D because you need an explanation <br> Explanation: Please I'll mark Brainliest
    6·1 answer
  • De acuerdo con el tabulador de puestos de una compañía, los salarios mensuales que obtienen los trabajadores son los que se mues
    10·1 answer
  • How can I skip more helppppppppppppppppppppppp
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!