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
What are the two types of furnaces used in steel production?
Kobotan [32]

Explanation:

The two types of furnaces used in steel production are:

<u>Basic oxygen furnace </u>

In basic oxygen furnace, iron is combined with the varying amounts of the steel scrap and also small amounts of the flux in the Blast Furnace. Lance is introduced in vessel and blows about 99% of the pure oxygen causing rise in temperature to about 1700°C. This temperature melts scrap and the impurities are oxidized and results in the liquid steel.

<u>Electric arc furnace</u>

Electric arc furnace reuses existing steel. Furnace is charged with the steel scrap. It operates on basis of electrical charge between the two electrodes providing heat for process. Power is supplied through electrodes placed in furnace, which produce arc of the electricity through scrap steel which raises temperature to about 1600˚C. This temperature melts scrap and the impurities can be removed through use of the fluxes and results in the liquid steel.

3 0
4 years ago
The acrylic plastic rod is 200 mm long and 15 mm in diameter. If an axial load of 300 N is applied to it, determine the change i
ehidna [41]

Answer:

Change in length = 0.1257 mm

Change in diameter= -0.03771mm

Explanation:

Given

Diameter, d = 15 mm

Length of rod, L = 200mm

F = Force= 300N

d = 0.015m

Ep=2.70 GPa, np=0.4.

First, we have to calculate the normal stress using

σ = F/A where F = Force acting on the Cross-sectional area

A = Area

Area is calculated as πd²/4 where d = 0.015m

A = 22/7 * 0.015²/4

A = 0.000176785714285m²

A = 1.768E-4m²

So, stress. σ = 300N/1.768E-4m²

σ = 1696832.579185520Pa

σ = 1.697MPa

Calculating E(long)

E(long) = σ /Ep

E(long) = 1.697E-3/2.70

E(long) = 0.0006285

At this point, we fan now calculate the change in length of the element;

∆L = E(long) * L

∆L = 0.0006285 * 200mm

∆L = 0.1257mm

Calculating E(lat)

E(lat) = -np * E(long)

E(lat) = -4 * 0.0006285

E(lat) = -0.002514

At this point, we can now calculate the change in diameter of the element;

∆D = E(lat) * D

∆L = -0.002514 * 15mm

∆L = -0.03771mm

8 0
3 years ago
An 18-in.-long titanium alloy rod is subjected to a tensile load of 24,000 lb. If the allowable tensile stress is 60 ksi and the
Vilka [71]

Answer:

Required Diameter = 302.65 inches

Explanation:

We are given;

Allowable tensile stress = 60 ksi

Weight of tensile load = 24,000 lb

Elongation = 0.05 in

Original length = 18 in

We'll need to check the diameters under stress and strain.

Now, we know that the formula for stress is;

Stress = Force/Area

Thus,

Area = Force/stress

So for this stress, area required is;

A_req = 24000/60 = 4000 in²

So let's find the required diameter here.

Area = πd²/4

So, 4000 = πd²/4

(4000 x 4)/π = d²

d² = 5092.96

Required diameter here is;

d = √5092.96

d = 71.36 in

For Strain;

Formula for strain is;

Strain = stress/E

We are given E = 120 ksi

stress = P/A = 24,000/A

strain = elongation/original length = 0.05/18 = 0.00278

Thus;

0.00278 = P/(A•E)

0.00278 = 24000/(120 x A)

Making A the subject to obtain;

A = 24000/(120 x 0.00278)

A_required = 71942 in²

Area = πd²/4

So, 71942 = πd²/4

(71942 x 4)/π = d²

d² = 91599.4

Required diameter here is;

d = √91599.4

d = 302.65 in

The larger diameter is 302.65 inchesand it's therefore the required one.

3 0
4 years ago
Answer every question of this quiz
Reil [10]

I'd say number 4, number 3 looks like an exhaust valve

5 0
4 years ago
A renewable item is something that is capable of being replaced naturally.
djverab [1.8K]
The answer is False.
6 0
4 years ago
Read 2 more answers
Other questions:
  • Two wafer sizes are to be compared: a 156-mm wafer with a processable area = 150mm diameter circle and a 312-mm wafer with a pro
    10·1 answer
  • A 2-m3 rigid tank initially contains air at 100 kPa and 22°C. The tank is connected to a supply line through a valve. Air is flo
    14·1 answer
  • 3. Suppose you work for this company that evaluates Boolean circuits in exponential time. Since you are very smart, your manager
    12·1 answer
  • The distribution of actual weights of 8‑ounce wedges of cheddar cheese produced at a dairy is Normal, with mean 8.1 ounces and s
    5·1 answer
  • Giving 100 points for answer plzz
    10·2 answers
  • Draw the logic circuit for each of the following. For each gate, determine if it generates either EVEN or ODD parity bit and fin
    5·1 answer
  • 1. What's the maximum overall length of the part?<br> 2. What material is used to fabricate the part
    5·1 answer
  • What energy transformation takes place when you turn on a light
    8·1 answer
  • Okay<br>going offline bye<br>have a great day​
    10·2 answers
  • 5. Which of the following is false about onStep?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!