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
Assume we have one road section which has 3 lanes in both directions. If the Sf for both direction is 75 mph, and Dj for both di
givi [52]

Answer:

i) 3750 veh/hr/ln

ii) 100 veh/mi/In

iii) 37.5 mph

Explanation:

number of lanes = 3

sf for both directions = 75 mph  ( free mean speed )

Dj for both directions = 200 veh/mi/In

<u>Calculate the value of  S0, D0 (veh/mi/ln) and maximum Vm (veh/hr)</u>

For either direction we will consider the total volume = 3 lanes

value of Dj = 3 lanes * 200 = 600 veh/mi/

i) value of SO

=  ( Dj * sf ) / 4 = ( 600 * 75 ) / 4 = 11250 veh/hr  = 3750 veh/hr/lane

ii) Value of DO

DO = Dj / 2 = 200 /2 = 100 veh/mi/In

iii) Value of Vm

= sf /2 = 75 / 2 = 37.5 mph

5 0
3 years ago
Add the following vector given in rectangular form and illustrated the process graphically A = 16+j12, B= 6+j10.4
MariettaO [177]

Answer:

A=16+j12…'B=6+j10.4

Explanation:

add the following vector given in

3 0
2 years ago
PLEASE HELP, I WILL MARK AS BRAINLIEST, URGENT!!!
Feliz [49]
<h2>Answer:-</h2>

1.Enzymes used by fireflies are used to improve <u>Food Safety </u><u>.</u>

2.They have seven different kinds of silk.

Option A

<h2>Mark it BRAINLIST </h2>

3 0
3 years ago
Determine the initial void ratio, the relative density and the unit weight (in pounds per cubic foot) of the specimens for each
Elina [12.6K]

The initial void ratio is the <em>parameter </em>which is used to show the structural foundations for each <em>specimen of sand </em>so that the method and speed of compression would be <em>measured</em>.

Relative density is the mass per unit volume of each specimen of sand which is <em>measured </em>and it has to do with the<em> relative ratio</em> of the density of the sand.

Unit weight is the the exact weight per cubic foot of the sand which is measured.

Please note that your question is incomplete so I gave you a general overview to help you better understand the concept

Read more here:

brainly.com/question/15220801

5 0
3 years ago
According to the restricted routes table, Washington State Road 548 is restricted in
Alex Ar [27]

Answer:

chilhowee to North Carolina state line

7 0
3 years ago
Other questions:
  • Design a half-wave recti er which provides a peak voltage of 15 V, and anaverage voltage of 3.8 V when driven by a 120 V (rms) a
    10·1 answer
  • What is the magnitude of the maximum stress that exists at the tip of an internal crack having a radius of curvature of 3.5 × 10
    9·1 answer
  • 2. A Class B fire includes burning:
    8·1 answer
  • you have a permanent magnet whit remanent induction. than you cut a piec of that magnet. if you put that piece back into permane
    12·1 answer
  • What is Absorption in your own words
    12·1 answer
  • The atomic radii of a divalent cation and a monovalent anion are 0.77 nm and 0.136 nm, respectively.1- Calculate the force of at
    11·1 answer
  • An intersection had 13 crashes last year. The 4 legs of the intersection had 2-way ADT values of 9671, 2893, 9506, and 2611 vehi
    12·1 answer
  • A train starts from rest at station A and accelerates at 0.4 m/s^2 for 60 s. Afterwards it travels with a constant velocity for
    11·1 answer
  • En que consiste la ley del emprendimiento ?
    13·1 answer
  • For a Cu-Ni alloy containing 53 wt.% Ni and 47 wt.% Cu at 1300°C, calculate the wt.% of the alloy that is solid and wt.% of allo
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!