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
Which type of door consists of thin pieces of wood, glass, or louvers placed within a framed rectangular area?
MArishka [77]

Answer:

panel door

Explanation:

i just guessed

6 0
3 years ago
Read 2 more answers
1. Which of the following is the ideal way to apply pressure onto pedals?
Vikki [24]
I think D. By pressing gradually
8 0
3 years ago
Read 2 more answers
A heat pump cycle is used to maintain the interior of a building at 15°C. At steady state, the heat pump receives energy by heat
Hoochie [10]

Answer:

a) Ql=33120000 kJ

b) COP = 5.6

c) COPreversible= 29.3

Explanation:

a) of the attached figure we have:

HP is heat pump, W is the work supplied, Th is the higher temperature, Tl is the low temperature, Ql is heat supplied and Qh is the heat rejected. The worj is:

W=Qh-Ql

Ql=Qh-W

where W=2000 kWh

Qh=120000 kJ/h

Q_{l}=14days(\frac{24 h}{1 day})(\frac{120000 kJ}{1 h})-2000 kWh(\frac{3600 s}{1 h})=33120000 kJ

b) The coefficient of performance is:

COP=\frac{Q_{h} }{W}=\frac{120000 kJ/h*14(\frac{24 h}{1 day}) }{2000 kWh(\frac{3600 s}{1 h}) } = 5.6

c) The coefficient of performance of a reversible heat pump is:

COP_{reversible}=\frac{T_{h} }{T_{h}-T_{l}  }

Th=20+273=293 K

Tl=10+273=283K

Replacing:

COP_{reversible}=\frac{293}{293-283}=29.3

4 0
3 years ago
(True/False) Unix is written in the C language. *<br> True<br> O False
Katarina [22]

Answer:

false

Explanation:

8 0
3 years ago
Read 2 more answers
Koch traded Machine 1 for Machine 2 when the fair market value of both machines was $60,000. Koch originally purchased Machine 1
Mariana [72]

Answer:

Koch's adjusted basis in machine 2 after the exchange is $60,000

Explanation:

given data

fair market value = $60,000

originally purchased Machine 1 = $76,900

Machine 1 adjusted basis = $40,950

Machine 2 seller purchase = $64,050

Machine 2 adjusted basis = $55,950

solution

As he exchanged machine for another at $60,000

and this exchanged in fair market

so adjusted basis =  $50,000

Adjusted basis is the price of the item that affects the factors that are considered price. These factors usually include taxes, depreciation value, and other costs of acquiring and maintaining a given item. Adjusted basis is important so the right amount to sell

Adjusted basis increases when a person deducts expenses from factor taxes and operating statements

so Koch's adjusted basis in machine 2 after the exchange is $60,000

3 0
3 years ago
Other questions:
  • A 5 MW gas turbine power plant is reported to have a thermodynamic efficiency of 35%. Assume products of the combustion reaction
    5·1 answer
  • For the reactions of ketone body metabolism, _______.
    15·1 answer
  • A solid steel shaft has to transmit 100 kW at 160 RPM. Taking allowable shear stress at 70 Mpa, find the suitable diameter of th
    15·1 answer
  • In the ______ phase of the organizational life cycle, the organization is usually very small and agile, focusing on new products
    8·1 answer
  • E xercise 17.1.2: For each of the transactions of Exercise 17.1.1, add the read- and write-actions to the computation and show t
    12·1 answer
  • Describe in detail the process of making a collapsable bowl.​
    11·1 answer
  • Define;<br>i) Voltage<br>ii) Current<br>iii) Electrical Power<br>iv) Electrical Energy​
    10·1 answer
  • A fine-grained soil has a liquid limit of 200%, determined from the Casagrande cup method. The plastic limit was measured by rol
    15·1 answer
  • To understand the concept of moment of a force and how to calculate it using a scalar formulation.
    9·1 answer
  • Can someone help me LA project pls :((
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!