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]
3 years ago
15

Write a python program to apply this:

Engineering
1 answer:
lakkis [162]3 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
During a medical evaluation, the doctor can __________.
Elan Coil [88]

Answer:

Treat the patient

i hope this is ur answer

8 0
2 years ago
A group of n Ghostbusters is battling n ghosts. Each Ghostbuster carries a proton pack, which shoots a stream at a ghost, eradic
babunello [35]

Answer:

Using the above algorithm matches one pair of Ghostbuster and Ghost. On  each side of the line formed by the pairing, the number of Ghostbusters and Ghosts are  the same, so use the algorithm recursively on each side of the line to find pairings. The  worst case is when, after each iteration, one side of the line contains no Ghostbusters  or Ghosts. Then, we need n/2 total iterations to find pairings, giving us an P(n^{2} lg n)-  time algorithm.

4 0
3 years ago
The author states that chemical engineering is one of the most difficult and complex aspects of engineering. Why do you think th
marishachu [46]

Answer:

hope this helps

Explanation:

answers:

1. Chemical engineering is most difficult because it's a mix of physics, chemistry and math

2. Stoichiometry is so important because it shows how materials react, interact and play off each other

3. Yes I think consumers would notice if process control standards were not met. for example medicines, when people take Tylenol or cold pills, if the amount of time it took to kick it becomes longer, people will become aware that the product is not consistent and reliable.

4. i have no idea sorry :(

5. This is explaining how there are rules and regulations to make the workplace safe. it can be accomplished by following those rules and regulations

8 0
3 years ago
Read 2 more answers
When CO2 rises, temperature rises. Why do you think this is?
icang [17]

Answer:

The warming causes the oceans to release CO2. The CO2 amplifies the warming and mixes through the atmosphere, spreading warming throughout the planet. So CO2 causes warming AND rising temperature causes CO2 rise. Overall, about 90% of the global warming occurs after the CO2 increase.

Explanation:

6 0
2 years ago
Because of ____________ people must make choices, and when they choose, they incur a(n)______________.
lbvjy [14]
There must be a photo for me to answer!
3 0
3 years ago
Other questions:
  • A battery is an electromechanical device. a)- True b)- False
    6·1 answer
  • A Scalar can only be a positive quantity that has a magnitude but no direction ? a)-True b)-False
    5·1 answer
  • Thermal energy storage systems commonly involve a packed bed of solid spheres, through which a hot gas flows if the system is be
    13·1 answer
  • In normal operation, a paper mill generates excess steam at 20 bar and 400◦C. It is planned to use this steam as the feed to a t
    14·1 answer
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • A round bar of chromium steel, (ρ= 7833 kg/m, k =48.9 W/m-K, c =0.115 KJ/kg-K, α=3.91 ×10^-6 m^2/s) emerges from a heat treatmen
    14·1 answer
  • A civil engineer is likely to fit in which of the Holland occupational codes?
    14·2 answers
  • 1) What output force (Fout) is produced if the lever arm length (rout) is 100 mm?
    13·2 answers
  • TP-6 What should you do when fueling an outboard boat with a portable tank?
    12·1 answer
  • A rectangular bar has a edge crack at the bottom and is subjected to a pure bending moment. The crack length is a = 1 mm. The he
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!