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
sergeinik [125]
3 years ago
10

g A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output

is the miles walked. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('{:.2f}'.format(your_value))
Engineering
2 answers:
Nataly [62]3 years ago
8 0

Answer:

# Program is written in Python Programming Language

# Comments are used for explanatory purpose

# Program starts here

# Accept input

Steps = input (Number of Steps: ")

# Calculate distance

distance = float(2000) * float(steps)

#Print Formatted Result

print('%0.2f' % distance)

# End of Program

.--------

The above program converts number of steps to miles.

At line 5, the number of steps is inputted and stored in variable named Steps.

At line 6, the number of miles is calculated by multiplying 2000 by the content of variable Steps

The result is printed at line 8

Novosadov [1.4K]3 years ago
5 0

Answer:

steps = int(input("Enter the number of steps: "))

miles = steps / 2000

print('{:.2f}'.format(miles))Explanation:

You might be interested in
The modulus of elasticity for a ceramic material having 6.0 vol% porosity is 303 GPa. (a) Calculate the modulus of elasticity (i
Phantasy [73]

Answer:

modulus of elasticity for the nonporous material is 340.74 GPa

Explanation:

given data

porosity = 303 GPa

modulus of elasticity = 6.0

solution

we get here  modulus of elasticity for the nonporous material Eo that is

E = Eo (1 - 1.9P + 0.9P²)    ...............1

put here value and we get Eo

303 = Eo ( 1 - 1.9(0.06) + 0.9(0.06)² )  

solve it we get

Eo = 340.74 GPa

8 0
3 years ago
A lagoon is designed to accommodate an input flow of 0.10 m^3/s of nonconservative pollutant with concentration 30 mg/L and deca
dexar [7]

Answer:

Volume of the lagoon required for the decay process must be larger than 86580 m³ = 8.658 × 10⁷ L

Explanation:

The lagoon can be modelled as a Mixed flow reactor.

From the value of the decay constant (0.2/day), one can deduce that the decay reaction of the pollutant is a first order reaction.

The performance equation of a Mixed flow reactor is given from the material and component balance thus:

(V/F₀) = (C₀ - C)/((C₀)(-r)) (From the Chemical Reaction Engineering textbook, authored by Prof. Octave Levenspiel)

V = volume of the reactor (The lagoon) = ?

C₀ = Initial concentration of the reactant (the pollutant concentration) = 30 mg/L = 0.03 mg/m³

F₀ = Initial flow rate of reactant in mg/s = 0.10 m³/s × C₀ = 0.1 m³/s × 0.03 mg/m³ = 0.003 mg/s

C = concentration of reactant at any time; effluent concentration < 10mg/L, this means the maximum concentration of pollutant allowed in the effluent is 10 mg/L

For the sake of easy calculation, C = the maximum value = 10 mg/L = 0.01 mg/m³

(-r) = kC (Since we know this decay process is a first order reaction)

This makes the performance equation to be:

(kVC₀/F₀) = (C₀ - C)/C

V = F₀(C₀ - C)/(kC₀C)

k = 0.2/day = 0.2/(24 × 3600s) = 2.31 × 10⁻⁶/s

V = 0.003(0.03 - 0.01)/(2.31 × 10⁻⁶ × 0.03 × 0.01)

V = 86580 m³

Since this calculation is made for the maximum concentration of 10mg/L of pollutant in the effluent, the volume obtained is the minimum volume of reactor (lagoon) to ensure a maximum volume of 10 mg/L of pollutant is contained in the effluent.

The lower the concentration required for the pollutant in the effluent, the larger the volume of reactor (lagoon) required for this decay reaction. (Provided all the other parameters stay the same)

Hope this helps!

5 0
3 years ago
The oil system is:
kirill [66]

Answer:

From the main bearings, the oil passes through feed-holes into drilled passages in the crankshaft and on to the big-end bearings of the connecting rod.

3 0
2 years ago
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
givi [52]

Answer:

The bulb will be \frac{1}{4} times as bright as it is in Europe.

Explanation:

Data provided in the question:

Power of bulb in Europe = 75 W

Voltage provided in Europe = 240 V

Voltage provided in United Stated = 120 V

Now,

We know,

Power = Voltage² ÷ Resistance

Therefore,

75 = 240² ÷ Resistance

or

Resistance = 240² ÷ 75

or

Resistance = 768 Ω

Therefore,

Power in United States = Voltage² ÷ Resistance

= 120² ÷ 768

= 18.75 W

Therefore,

Ratio of powers

\frac{\text{Power in united states}}{\text{Power in Europe}}=\frac{18.75}{75}

= \frac{1}{4}

Hence,

The bulb will be \frac{1}{4} times as bright as it is in Europe.

7 0
3 years ago
For the solidification of nickel, calculate the critical radius r* and the activation free energy ΔG* if nucleation is homogeneo
Fantom [35]

Answer:

????????????????

Explanation:

8 0
3 years ago
Other questions:
  • "From the earth to the moon". In Jules Verne’s 1865 story with this title, three men went to the moon in a shell fired from a gi
    5·1 answer
  • A manufacturer makes integrated circuits that each have a resistance layer with a target thickness of 200 units. A circuit won't
    5·1 answer
  • You’ve experienced convection cooling if you’ve ever extended your hand out the window of a moving vehicle or into a flowing wat
    6·1 answer
  • How to build a robot
    12·1 answer
  • Our goal is to design a traffic-light controller with the following properties; it lights up the green light (output G) for 15 s
    7·1 answer
  • Sketch T-s and p-v diagrams for the Diesel cycle.
    8·1 answer
  • To measure the voltage drop across a resistor, a _______________ must be placed in _______________ with the resistor. Ammeter; S
    9·1 answer
  • Steam flows steadily through an adiabatic turbine. The inlet conditions of the steam are 10 MPa, 450°C, and 80 m/s, and the exit
    11·1 answer
  • A sample of sand weighs 490 g in stock and 475 in Oven Dry (OD) condition, respectively. If absorption capability of the sand is
    6·1 answer
  • Which of the following can minimize engine effort and
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!