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]
2 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]2 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
21. Explique claramente como el fenotipo es el que favorece o desfavorece los resultados productivos obtenidos tanto en las expl
Montano1993 [528]
Los sistemas de producción pecuaria, son considerados como la estrategia social, económica y cultural más apropiada para mantener el bienestar de las comunidades, debido a que es la única actividad que puede simultáneamente proveer seguridad en el sustento diario, conservar ecosistemas, promover la conservación de la
6 0
2 years ago
When a motorist passes a bicyclist, what is the minimum legal distance (clearance) to leave between vehicle and bike? *
Vladimir79 [104]
There is no legal minimum distance
8 0
3 years ago
The product second moment of area Ixy is found by multiplying Ix and Iy. a)True b)- False
Kamila [148]

Answer:

(b)False

Explanation:

I_{xy} defined as

      I_{xy} =\int \left (x\cdot y\right )dA

Where x is the distance from centroidal x-axis

           y is the distance from centroidal y-axis

          dA is the elemental area.

The product of x and y can be positive or negative ,so the value of  I_{xy} can be positive as well as negative .

So from the above expressions we can say that the product of I_{x},I_y is different from I_{xy} .

7 0
3 years ago
What is the single largest contributor to increasing takeoff or landing distance?
hodyreva [135]

An uphill slope improves the take-off ground run, and a downhill slope increases the landing ground run.

<h3>What is uphill slope?</h3>

Driving uphill suggests climbing a “positive” six percent slope . Driving downhill, the “rise” exists as a  drop, so there is a “negative,” or downhill, slope (Figure B). When dealing with slope, a positive slope simply indicates uphill and a negative slope indicates downhill. An uphill slope improves the take-off ground run, and a downhill slope increases the landing ground run.

If something or someone lives moving downhill or is downhill, they exist moving down a slope or are located toward the bottom of a hill. He headed downhill toward the river. adverb. If you communicate that something exists going downhill, you mean that it is becoming worse or less prosperous.

To learn more about uphill slope refer to:

brainly.com/question/13361896

#SPJ4

3 0
2 years ago
On a CNC lathe, which of the following axes specifies the distance of the cutting tool from the workpiece centerline?
kvasek [131]

Answer:

The axis of motion that is parallel to the spindle axis is always the Z-axis.

Explanation:

Z-Axis Which axis is which depends on the orientation of the spindle.

If the spindle is vertical (Figure 2.1), the Z-axis is vertical. Either the quill or the knee of a vertical spindle mill will move when a Z-axis command is executed.

This is the best answer I could give you, maybe you could show us a pic of the question so we see all the possible choices?

8 0
2 years ago
Other questions:
  • Question text
    15·1 answer
  • Bridge A is the longest suspension bridge in a Country. Bridge B is 5555 feet shortershorter than Bridge A. If the length of Bri
    9·1 answer
  • 6. Given a sheet of metal that is 1.2 cm wide, 3.8 cm long and 1.0 mm thick with a density of 8.57 g/cm3, calculate the mass of
    8·1 answer
  • The primary transformer voltage is 2.8 kV and the secondary is 230 V. The transformer is connected to a variable load (0 to 300
    8·1 answer
  • How did studying pagodas help engineers create earthquake-proof structures in modern society?A. Engineers learned that the desig
    6·1 answer
  • Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 12.00
    13·1 answer
  • Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    9·1 answer
  • Solid Isomorphous alloys strength
    11·1 answer
  • 1. You should
    11·2 answers
  • 2. What is the Function of the Camshaft in an Internal Combustion Engine?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!