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
A simple undamped spring-mass system is set into motion from rest by giving it an initial velocity of 100 mm/s. It oscillates wi
____ [38]

Answer:

f=1.59 Hz

Explanation:

Given that

Simple undamped system means ,system does not consists any damper.If system consists damper then it is damped spring mass system.

Velocity = 100 mm/s

Maximum amplitude = 10 mm

We know that for a simple undamped system spring mass system

V_{max}=\omega A

now by putting the values

V_{max}=\omega A

100 = ω x 10

ω = 10 rad/s

We also know that

ω=2π f

10 = 2 x π x f

f=1.59 Hz

So the natural frequency will be f=1.59 Hz.

6 0
3 years ago
f the rope is drawn toward the motor M at a speed of vM= (5t3/2) m/s, where t is in seconds, determine the speed of the cylinder
SCORPION-xisa [38]

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED Rharden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED RVV

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED R

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED R

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED R

4 0
3 years ago
What is the atmospheric temperature on Venus if the density is 67 kg/m^3 and the pressure is 9.3 mPa, absolute? Express in °C an
swat32

Answer:

461 C

862 F

Explanation:

The specific gas constant for CO2 is

R = 189 J/(kg*K)

Using the gas state equation:

p * v = R * T

T = p * v / R

v = 1/δ

T = p  / (R * δ)

T = 9.3*10^6  / (189 * 67) = 734 K

734 - 273 = 461 C

461 C = 862 F

4 0
3 years ago
(a) what is Linear equation (b) Why Laplace's equation is linear
Triss [41]

Answer:

 A) Linear Equation -

      Linear equation has only one independent variable and when the linear equation plotted on a graph it forms a straight line. It is made up of two expressions equal to each other in a equation. Linear equation graph fits the Y= mx+a ( m=slope).

B) Laplace's equation is linear as it is a second order partial differential equation. So if we put dependent variable in differential equation it always show result in linear.

7 0
3 years ago
Using the degree day method calculate the annual kwh use in springfiled il with a heat loss of 12kwh an inddor twmperature of 7
vladimir2022 [97]

Answer:

The correct solution is "21024 KWh/degree day".

Explanation:

The given query is incomplete. Below is the attachment of complete query is provided.

The given values are:

Indoor design temperature:

= 70°F

Now,

According to the question,

The heat loss annually will be:

= 12\times 24\times 365

= 105120 \ KW

Degree days will be:

= 75-65

= 5

Hence,

Annual KWh use will be:

= \frac{Heat \ loss \ annually}{degree \ days}

On substituting the values, we get

= \frac{105120}{5}

= 21024 \ KWh/degree \ day

8 0
3 years ago
Other questions:
  • You buy a 75-W lightbulb in Europe, where electricity is delivered to homes at 240V. If you use the lightbulb in the United Stat
    5·1 answer
  • Wqqwfqwfqwfqfqfqffqwffqwqfqqfqfqffqqfqfwccc
    12·2 answers
  • A mercury thermometer has a cylindrical capillary tube with an internal diameter of 0.2 mm. If the volume of the thermometer and
    10·1 answer
  • Free ideas free points. You will be reported for answering "no" or I don't know
    11·1 answer
  • A skilled worker with the ability to operate computer numerically controlled (CNC) machines is qualified to work in which of the
    10·1 answer
  • I don't know what is this​
    9·1 answer
  • Similarity of surface<br>and ground<br>waler​
    9·1 answer
  • In a device to produce drinking water, humid air at 320C, 90% relative humidity and 1 atm is cooled to 50C at constant pressure.
    14·1 answer
  • A driver is traveling at 90 km/h down a 3% grade on good, wet pavement. An accident
    11·1 answer
  • What is the shape of the output signal on a rigexpert analyzer?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!