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
Select four items that an industrial engineer must obtain in order to practice in the field.
alex41 [277]

Answer:

Professional engineering license

Bachelor's degree

Computer science classes

job recommendations

3 0
2 years ago
Read 2 more answers
The parts of a feature control frame are the tolerance value, the datum references, and the
Elan Coil [88]

Answer:

d

Explanation:

4 0
3 years ago
Hi,I want to know something.
Paha777 [63]

Answer:

So it looks to me that, Yes, you can find 10-50 leds on Amazon. You just have to be specific and search 10-50 led Christmas lights for windows, or something along those lines. Also try filtering the results, and reading the descriptions and reviews. This should help you out, and if it doesn't then I'm sorry.

Good luck friend :)

8 0
3 years ago
X+3=2<br>x=??<br><br><br><br>No spamming​
PtichkaEL [24]

Answer:

x+3=2

x=2-3꧁

꧁꧁꧂꧂꧂꧂

x=-1

4 0
3 years ago
A well-designed product will increase?​
Colt1911 [192]

Answer:

true

Explanation:

A well designed product will increase in sells and in stock.

8 0
2 years ago
Other questions:
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • A heat engine does 210 J of work per cycle while exhausting 440 J of waste heat. Part A What is the engine's thermal efficiency?
    6·1 answer
  • The annual storage in Broad River watershed is 0 cm/y. Annual precipitation is 100 cm/y and evapotranspiration is 50 cm/y. The s
    10·2 answers
  • Which lists the order of Energy Career Pathways from the source to the customer?
    9·2 answers
  • 10. Identify one material we Mine and what we make with that material
    6·1 answer
  • Solve the inequality below.Use the drop-down menus to describe the solution and its graph.
    12·1 answer
  • Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
    5·1 answer
  • The example of using biotechnology in heart surgery is used to illustrate which of the
    12·1 answer
  • What do you mean by overflow and underflow error in array?.
    11·1 answer
  • What are the horizontal structures beneath a slab that help transfer the load from the slab to the columns?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!