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
1. In a base bias configuration with a supply voltage is 15v, what does Ver equal when reverse biased?
wlad13 [49]
The answer is C!!!!!!!!
3 0
3 years ago
2. Explain advantages and disadvantages of computer.<br>Each five.​
Salsk061 [2.6K]

Answer:

Hope it helps...

Explanation:

-the main advantages and benefits you'll get from using a computer.

Increase your productivity. ...

Connects you to the Internet. ...

Can store vast amounts of information and reduce waste. ...

Helps sort, organize, and search through information. ...

Get a better understanding of data. ...

Keeps you connected.

the disadvantages to using a computer and what type of problems you may personally encounter.

Carpal tunnel and eye strain. ...

Too much sitting. ...

Short attention span and too much multitasking. ...

Can limit learning and create a dependency. ...

Potential of loss of privacy. ...

Time sink and lots of distractions.

PLEASE THANK MY ANSWER

3 0
3 years ago
A silicon carbide plate fractured in bending when a blunt load was applied to the plate center. The distance between the fractur
anyanavicka [17]

Answer:

hello your question has some missing values below are the missing values

Mirror Radius (mm) Bending Failure Stress (MPa)

.603                                         225

.203                                         368

.162                                          442

answer : 191 mPa

Explanation:

<u>Determine the stress present at the time of fracture for the original plate</u>

Bending stress ∝ 1 / ( mirror radius )^n ------ ( 1 )

at 0.603  bending stress = 225

at 0.203  bending stress = 368

at 0.162  bending stress = 442

<u>applying equation 1   determine the value of n for several combinations</u>

 ( 225 / 368 ) = ( 0.203 / 0.603 )^n

hence : n = 0.452

also

 ( 368/442 ) = ( 0.162 / 0.203 ) ^n

hence : n = 0.821

also

( 225 / 442 ) = ( 0.162 / 0.603 ) ^n

hence : n = 0.514

Next determine the average value of n

n ( mean value ) =  ( 0.452 + 0.821 + 0.514 ) / 3 = 0.596

Calculate estimated stress present at the time of fracture for the original plate

= bending stress at x =  0.796 / bending stress at x = 0.603

= x / 225 = ( 0.603 / 0.796 ) ^ 0.596

therefore X ( stress present at the time of fracture of original plate )

     = 225 * 0.84747

     <em>=  191 mPa </em>

3 0
2 years ago
Express (118)10 and (-49)10 in 8-bit binary one’s complement form and then add the numbers. What would be the representation (-0
stealth61 [152]

Answer:

118_{10}= 0110111 2) -49_{10}=110001_{2} 3) 0_{10}=0:16 \Rightarrow 0_{10}=0_{16}

Explanation:

1) Expressing the Division as the summation of the quotient and the remainder

for

118, knowing it is originally a decimal form:

118:2=59  +(0), 59/2 =29 + 1, 29/2=14+1, 14/2=7+0, 7/2=3+1, 3/2=1+1, 1/2=0+1

118_{10}= 0110111

2) -49_{10}

Similarly, we'll start the process with the absolute value of -49 since we want the positive value of it. Then let's start the successive divisions till zero.

|-49|=49

49:2=24+1, 24:2=12+0,12:2=6+0,6:2=3+0,3:2=1+1,1:2=0+1

100011

-49_{10}=110001_{2}

3) (-0)_{10}

The first step on that is dividing by 16, and then dividing their quotient again by 16, so on and adding their remainders. Simply put:

(-0)_{10}=0:16=0 \Rightarrow (0)_{10}=0_{16} \:or\\(0)_{16}=0000000000000000

5 0
3 years ago
Most farm equipment that attaches to a tractor is powered by its own independent motor.
Pavlova-9 [17]

Answer:

False

Explanation:

its self explanatory. a tracter pulls the equipment, so why power the equipment? the tracter is giving it free energy.

3 0
2 years ago
Other questions:
  • 1. Consider a city of 10 square kilometers. A macro cellular system design divides the city up into square cells of 1 square kil
    10·1 answer
  • Ammonia enters an adiabatic compressor operating at steady state as saturated vapor at 300 kPa and exits at 1400 kPa, 140◦C. Kin
    11·1 answer
  • What is an ip<br> Number
    12·1 answer
  • The density of a fluid is given by the empirical equation rho 70:5 exp 8:27 107 P where rho is density (lbm/ft3 ) and P is press
    6·1 answer
  • Polymer ropes and lines for use on water are often designed to float, to aid in their retrieval and to avoid applying a downward
    6·1 answer
  • 1.The moist unit weights and degrees of saturation of a soil are given: moist unit weight (1) = 16.62 kN/m^3, degree of saturati
    11·1 answer
  • Sensors are used to monitor the pressure and the temperature of a chemical solution stored in a vat. The circuitry for each sens
    15·1 answer
  • Which claim does president Kennedy make in speech university rice ?
    5·2 answers
  • For surface-mounted and pendant-hung luminaires, support rods should be placed so that they extend about ____
    8·1 answer
  • A monatomic ideal gas undergoes a quasi-static process that is described by the function p(????)=p1+3(????−????1) , where the st
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!