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
Conditions of special concern: i. Suggest two reasons each why distillation columns are run a.) above or b.) below ambient press
lutik1710 [3]

Solution :

Methods for selling pressure of a distillation column :

a). Set, \text{based on the pressure required to condensed} the overhead stream using cooling water.

  (minimum of approximate 45°C condenser temperature)

b). Set, \text{based on highest temperature} of bottom product that avoids decomposition or reaction.

c). Set, \text{based on available highest } not utility for reboiler.

Running the distillation column above the ambient pressure because :

The components to be distilled have very high vapor pressures and the temperature at which they can be condensed at or below the ambient pressure.

Run the reactor at an evaluated temperature because :

a). The rate of reaction is taster. This results in a small reactor or high phase conversion.

b). The reaction is endothermic and equilibrium limited increasing the temperature shifts the equilibrium to the right.

Run the reaction at an evaluated pressure because :

The reaction is gas phase and the concentration and hence the rate is increased as the pressure is increased. This results in a smaller reactor and /or higher reactor conversion.

The reaction is equilibrium limited and there are few products moles than react moles. As increase in pressure shifts the equilibrium to the right.

7 0
2 years ago
Which of these is the coarsest grit abrasive that may be used on aluminum?
natali 33 [55]

Answer:

80grit

Explanation:

80 grit is coarsest grit that may be used on aluminum

The lowest grit sizes range from 40 to 60. From the given options 80 grit is practically available grit.

What is a sandpaper used for?

They are essentially used for surface preparation. Sandpaper is produced in a range of grit sizes and is used to remove material from surfaces, either to make them smoother (for example, in painting and wood finishing), to remove a layer of material (such as old paint), or sometimes to make the surface rougher (for example, as a preparation for gluing).

5 0
3 years ago
Read 2 more answers
For welding the most important reason to use jigs and fixtures in a welding shop is to
diamong [38]

Answer:

Reduce manufacturing costs.

Explanation:

Hope This Helps

Have A Great Day

7 0
2 years ago
When adding two 8 bit binary numbers, which of the following statements is true?
diamong [38]

Answer:

The result might require 9 bits to store

4 0
1 year ago
Imagine you are a process safety consultant and you have been tasked to make a metal refinery site DSEAR compliant. What are the
masya89 [10]

Complying with DSEAR involves:

Assessing risks. ...

Preventing or controlling risks. ...

Control measures. ...

Mitigation. ...

Preparing emergency plans and procedures. ...

Providing information, instruction and training for employees. ...

Places where explosive atmospheres may occur ('ATEX' requirements)

hse uk

4 0
2 years ago
Other questions:
  • 11.A heat engine operates between two reservoirs at 800 and 20°C. One-half of the work output of the heat engine is used to driv
    6·1 answer
  • The Bureau of Labor and Statistics predicted that the field of biomedical engineering would increase by 62 percent over the comi
    10·1 answer
  • An n- channel enhancement- mode MOSFET with 50 nm thick HfO2 high- k gate dielectric (Pr = 25) has a flat band voltage of 0.5 V,
    5·1 answer
  • Air initially at 120 psia and 500o F is expanded by an adiabatic turbine to 15 psia and 200o F. Assuming air can be treated as a
    10·1 answer
  • The best way to become a better reader is to study longer and harder in every subject. engage in a variety of extracurricular ac
    5·2 answers
  • A cylinder fitted with a movable piston contains water at 3 MPa with 50% quality, at which point the volume is 20 L. The water n
    8·2 answers
  • Con que otro nombre se le conoce a los delitos informaticos
    5·1 answer
  • ​please how to drawing mechanical drawing after connecting the all parts thanks
    6·1 answer
  • Why do the quadrants in coordinate plane go anti-clockwise?.
    6·1 answer
  • a low velocity fastening system that is used to drive steel pins or threaded studs into a masonry and steel is a
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!