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
postnew [5]
3 years ago
14

How far do you jog each morning? You prefer to jog in different locations each day and do not have a pedometer to measure your d

istance. Create an application to determine the distance jogged given the average number of strides ran during the fist minute, average number ran during the last minute, and the total minutes jogging. Design a modularized solution (with methods) to display the distance traveled. Pedometers measure the distance you run. However, you can also do a good estimate of the distance if you know your foot stride, how many strides you complete per minute, and the number of minutes you job. Foot stride is the distance covered by one average step length. Since everyone has a different foot size, strides differ. Manny people average 3 feet per setup when jogging. For this application, assume the foot stride is 2.5 feet. There are 5,280 feet in a mile. To establish how many strides per minutes, allow the user to input the number of strides made during the first minute jogging and the number of strides made string the last minutes of jogging. Use the average of those values to represent the strides per minute. Allow the user to input the total time spent jogging in hours and minutes. Write code that will display to distance traveled in miles.
Engineering
1 answer:
Mashutka [201]3 years ago
7 0

Answer:

The program is given below with appropriate comments for better understanding

Explanation:

#Program

# foot stride = 2.5 feet

# 1 mile = 5280 feet

no_stride_first_min = int(input('Enter the number strides made durng the first minute of jogging: '))

no_stride_last_min = int(input('Enter the number strides made durng the last minute of jogging: '))

avg_stride_one_min = (no_stride_first_min + no_stride_last_min)/2 # calculates the average stride per minute

jogging_duration = float(input('Enter the total time spent jogging in hours and minute: '))

jogging_duration_hours = int(jogging_duration) # gets the hour

jogging_duration_min = jogging_duration - int(jogging_duration) # gets the minute

tot_jogging_duration_min = jogging_duration_hours*60 + jogging_duration_min # calculates total time in minutes

dist_feet = (avg_stride_one_min*2.5)*tot_jogging_duration_min # calculates the total distance in feet

dist_miles = dist_feet/5280 # calculates the total distance in mile

print('Distance traveled in miles = {0:.2f} miles'.format(dist_miles))

You might be interested in
Methane and oxygen react in the presence of a catalyst to form formaldehyde. In a parallel reaction, methane is oxidized to carb
Nezavi [6.7K]

Answer:

y_{CH_4}^2=\frac{5mol/s}{100mol/s}=0.05\\y_{O_2}^2=\frac{3mol/s}{100mol/s}=0.03\\y_{H_2O}^2=\frac{47mol/s}{100mol/s}=0.47\\y_{HCHO}^2=\frac{43mol/s}{100mol/s}=0.43\\y_{CO_2}^2=\frac{2mol/s}{100mol/s}=0.02

Explanation:

Hello,

a. On the attached document, you can see a brief scheme of the process. Thus, to know the degrees of freedom, we state the following unknowns:

- \xi_1 and \xi_2: extent of the reactions (2).

- F_{O_2}^2, F_{CH_4}^2, F_{H_2O}^2, F_{HCHO}^2 and F_{CO_2}^2: Molar flows at the second stream (5).

On the other hand, we've got the following equations:

- F_{O_2}^2=50mol/s-\xi_1-2\xi_2: oxygen mole balance.

- F_{CH_4}^2=50mol/s-\xi_1-\xi_2: methane mole balance.

- F_{H_2O}^2=\xi_1+2\xi_2: water mole balance.

- F_{HCHO}^2=\xi_1: formaldehyde mole balance.

- F_{CO_2}^2=\xi_2: carbon dioxide mole balance.

Thus, the degrees of freedom are:

DF=7unknowns-5equations=2

It means that we need two additional equations or data to solve the problem.

b. Here, the two missing data are given. For the fractional conversion of methane, we define:

0.900=\frac{\xi_1+\xi_2}{50mol/s}

And for the fractional yield of formaldehyde we can set it in terms of methane as the reagents are equimolar:

0.860=\frac{F_{HCHO}^2}{50mol/s}

In such a way, one realizes that the output formaldehyde's molar flow is:

F_{HCHO}^2=0.860*50mol/s=43mol/s

Which is equal to the first reaction extent \xi_1, therefore, one computes the second one from the fractional conversion of methane as:

\xi_2=0.900*50mol/s-\xi_1\\\xi_2=0.900*50mol/s-43mol/s\\\xi_2=2mol/s

Now, one computes the rest of the output flows via:

- F_{O_2}^2=50mol/s-43mol/s-2*2mol/s=3mol/s

- F_{CH_4}^2=50mol/s-43mol/s-2mol/s=5mol/s

- F_{H_2O}^2=43mol/s+2*2mol/s=47mol/s

- F_{HCHO}^2=43mol/s

- F_{CO_2}^2=2mol/s

The total output molar flow is:

F_{O_2}+F_{CH_4}+F_{H_2O}+F_{HCHO}+F_{CO_2}=100mol/s

Therefore the output stream composition turns out into:

y_{CH_4}^2=\frac{5mol/s}{100mol/s}=0.05\\y_{O_2}^2=\frac{3mol/s}{100mol/s}=0.03\\y_{H_2O}^2=\frac{47mol/s}{100mol/s}=0.47\\y_{HCHO}^2=\frac{43mol/s}{100mol/s}=0.43\\y_{CO_2}^2=\frac{2mol/s}{100mol/s}=0.02

Best regards.

7 0
3 years ago
Which permission do you need to shoot on the owner’s property?
Elena L [17]

Answer:

filming permit,

( MARK ME BRAINLIEST!!)

4 0
2 years ago
A solid cylindrical workpiece made of 304 stainless steel is 150 mm in diameter and 100 mm is high. It is reduced in height by 5
goblinko [34]

Answer:

45.3 MN

Explanation:

The forging force at the end of the stroke is given by

F = Y.π.r².[1 + (2μr/3h)]

The final height, h is given as h = 100/2

h = 50 mm

Next, we find the final radius by applying the volume constancy law

volumes before deformation = volumes after deformation

π * 75² * 2 * 100 = π * r² * 2 * 50

75² * 2 = r²

r² = 11250

r = √11250

r = 106 mm

E = In(100/50)

E = 0.69

From the graph flow, we find that Y = 1000 MPa, and thus, we apply the formula

F = Y.π.r².[1 + (2μr/3h)]

F = 1000 * 3.142 * 0.106² * [1 + (2 * 0.2 * 0.106/ 3 * 0.05)]

F = 35.3 * [1 + 0.2826]

F = 35.3 * 1.2826

F = 45.3 MN

7 0
3 years ago
what is an example of an innovative solution to an engineering problem? Explain briefly why you chose this answer.
Leviafan [203]

Answer:

robotic technology    

Explanation:

Innovation is nothing but the use of various things such as ideas, products, people to build up a solution for the benefit of the human. It can be any product or any solution which is new and can solve people's problems.

Innovation solution makes use of technology to provide and dispatch new solutions or services which is a combination of both technology and ideas.

One such example of an innovative solution we can see is the use of "Robots" in medical science or in any military operations or rescue operation.

Sometimes it is difficult for humans to do everything or go to everywhere. Thus scientist and engineers have developed many advance robots or machines using new ideas and technology to find solutions to these problems.

Using innovations and technologies, one can find solutions to many problems which is difficult for the peoples. Robots can be used in any surveillance operation or in places of radioactive surrounding where there is a danger of humans to get exposed to such threats. They are also used in medical sciences to operate and support the patient.  

3 0
3 years ago
Consider a cubic workpiece of rigid perfect plastic material with side length lo. The cube is deformed plastically to the shape
Taya2010 [7]

Answer:  ε₁+ε₂+ε₃ = 0

Explanation: Considering the initial and final volume to be constant which gives rise to the relation:-

                         l₀l₀l₀=l₁l₂l₃

                        \frac{lo*lo*lo}{l1*l2*l3}=1.0

                      taking natural log on both sides

                              ln(\frac{(lo*lo*lo)}{l1*l2*l3})=ln(1)

Considering the logarithmic Laws of division and multiplication :

                                ln(AB) = ln(A)+ln(B)

                                ln(A/B) = ln(A)-ln(B)

                           ln(\frac{(l1)}{lo})*ln(\frac{(l2)}{lo})*ln(\frac{(l3)}{lo}) = 0

Use the image attached to see the definition of true strain defined as

                         ln(l1/1o)= ε₁

which then proves that ε₁+ε₂+ε₃ = 0

8 0
3 years ago
Other questions:
  • A displacement transducer has the following specifications: Linearity error ± 0.25% reading Drift ± 0.05%/○C reading Sensitivity
    8·1 answer
  • The position of a particle moving along a straight line is defined by the relation. s = t^3 – 6t^2 – 15t + 40, where s is expres
    13·1 answer
  • An uncovered swimming pool loses 1.0 inch of water off its 1,000 ft^2 surface each week due to evaporation. The heat of vaporiza
    14·1 answer
  • Assume the triac of an AC discrete output module fails in the shorted state. How would this affect the device connected to this
    5·1 answer
  • 14. Tires are rotated to
    12·2 answers
  • Select the answer that shows how the recognition of depreciation expense
    10·1 answer
  • Is the gap store an example of commercial construction? Yes or no
    10·1 answer
  • PLS :(((( HELP HELPPPP
    13·1 answer
  • Technician A says that fuel filler caps with pressure and vacuum vents are used with EVAP system fuel tanks. Technician B says t
    5·1 answer
  • If a bearing needs 4. 0 s to solidify enough for impact, how high must the tower be?.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!