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
Find the resultant of the force system on the body OABC as shown .find the points where the resultant will cut the X and Y axis?
MAXImum [283]

Explanation:

the resultant force =

\sqrt{}  {x}^{2}  +  {y}^{2}

5 0
3 years ago
(a) Consider a message signal containing frequency components at 100, 200, and 400 Hz. This signal is applied to a SSB modulator
MakcuM [25]

Answer:

Explanation:

The frequency components in the message signal are

f1 = 100Hz, f2 = 200Hz and f3 = 400Hz

When amplitude modulated with a carrier signal of frequency fc = 100kHz

Generates the following frequency components

Lower side band

100k - 100 = 99.9kHz\\\\100k - 200 = 99.8kHz\\\\100k - 400 = 99.6kHz\\\\

Carrier frequency 100kHz

Upper side band

100k + 100 = 100.1kHz\\\\100k + 200 = 100.2kHz\\\\100k + 400 = 100.4kHz

After passing through the SSB filter that filters the lower side band, the transmitted frequency component will be

100k, 100.1k, 100.2k\ \texttt {and}\ 100.4kHz

At the receive these are mixed (superheterodyned) with local ocillator frequency whichh is 100.02KHz, the output frequencies will be

100.02 - 100.1k = 0.08k = 80Hz\\\\100.02 - 100.2k = 0.18k = 180Hz\\\\100.02 - 100.4 = 0.38k = 380Hz

After passing through the SSB filter that filters the higher side band, the transmitted frequency component will be

100k, 99.9k, 99.8k\ \ and \ \99.6kHz

At the receive these are mixed (superheterodyned) with local oscillator frequency which is 100.02KHz, and then fed to the detector whose output frequencies will be

100.02 - 99.9k = 0.12k = 120Hz\\\\100.02 - 99.8k = 0.22k = 220Hz\\\\100.02 - 99.6k = 0.42k = 420Hz

3 0
3 years ago
A rotator has a weight of 100lb with a centroidal radius of gyration of 9 in. Determine the moment of inertia about the center o
Ronch [10]

Answer:

8100 lbin²

Explanation:

Moment or inertia is expressed using the formula

I = mr²

M is the mass of the body

r is the radius of gyration

Given

W = 100lb

r = 9in

Required

Moment of inertia

I = Wr²

I = 100(9)²

I = 100×81

I = 8100lbin²

Hence the moment of inertia about the center of gravity for the rotator is

8100 lbin²

8 0
3 years ago
Explain three (3) modes of heat transfer in air conditioning system.
LenKa [72]

Answer:

1. Conduction

2. Convection

3. Radiation

Explanation:

The 3 modes of heat transfer i an air conditioning system:

1. Conduction:

The transfer of heat by conduction  takes place in solid and is when the conduction takes place as a result of direct contact in between the interacting material which transfer the heat energy from particle to particle thus conducting the heat through out the system.

2. Convection:

The other mode for the transfer of heat which takes place especially in fluids - gases and liquids is through the technique of convection in which the transfer of heat takes place by the circular motion of the atoms and molecules of the fluid which carries the heat energy and results in the distribution of the heated fluid in the entire system thus transferring all the heat energy in the entire system.

3. Radiation:

The third mode of heat transfer in the air conditioning system is through radiation. This method transfers the heat by making use of the electro-magnetic radiation in the infra red spectrum where the waves of the spectrum transfers the heat energy with the help of a medium or without any medium at all.

Thus making the radiation method of heat transfer as the only method out of the three methods which does not require the material medium for the transfer of heat energy.

4 0
3 years ago
What are employers required to do to keep employees safe from caught-in and -between hazards from hand-held power tools?
nika2105 [10]

Answer:

Employees who use hand and power tools and who are exposed to the hazards of falling, flying, abrasive and splashing objects, or exposed to harmful dusts, fumes, mists, vapors, or gases must be provided with the appropriate equipment needed, including Personal Protective Equipment, to protect them from the hazard.

Explanation:

8 0
3 years ago
Other questions:
  • Determine the percent error in using the ideal gas model to determine the specific volume of (a) water vapor at 4000 lbf/in.2, 1
    13·1 answer
  • Definition of permanent, semi permanent and temporary heat setting
    5·1 answer
  • The creation of designer drugs is outpacing the ability of society to enact laws to prohibit them. Many of these substances have
    11·1 answer
  • A six-lane multilane highway (three lanes in each direction) has a peak-hour factor of 0.90, 11-ft lanes with a 4-ft right-side
    11·1 answer
  • For an automotive spark-ignition engine, the combustion duration (from time of ignition through completion) is approximately one
    11·1 answer
  • Consider a metal single crystal oriented such that the normal to the slip plane and the slip direction are at angles of 43.1 deg
    6·1 answer
  • Why it is important to clean all mixing equipment out after mixing paint?​
    7·2 answers
  • Why is it important to have knowledge on abbreviations, sign and symbols in masonry servicing job in the construction business s
    10·1 answer
  • How meny people live in new york
    10·1 answer
  • Find the differential and evaluate for the given x and dx: y=sin2xx,x=π,dx=0.25
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!