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
A __________ is an added note showing additional or more specific information.
xxMikexx [17]

Answer:

awnsers should be added to know to show additional

8 0
3 years ago
The aluminum rod AB (G 5 27 GPa) is bonded to the brass rod BD (G 5 39 GPa). Knowing that portion CD of the brass rod is hollow
Temka [501]

Answer:

Qcd=0.01507rad

QT= 0.10509rad

Explanation:

The full details of the procedure and answer is attached.

7 0
3 years ago
The metal control joints used to relieve stresses caused by expansion and contraction in large ceiling or wall expenses in inter
timurjin [86]

Answer:

It’s called Expansion Joints

6 0
2 years ago
Argue the importance to society of incorporating green building into an engineer's designs, with at least two examples.
stellarik [79]

Answer:

Green Design is your answer

Explanation:

4 0
2 years ago
Read 2 more answers
Why is it important to keep hand tools free of oil and grease?
Bezzdna [24]

Answer:

keeps it from rusting

Explanation:

5 0
3 years ago
Other questions:
  • Technician A says a basic circuit problem can be caused by something in the circuit that increases voltage. Technician B says a
    8·1 answer
  • James River Jewelry is a small jewelry shop. While James River Jewelry does sell typical jewelry purchased form jewelry vendors,
    15·1 answer
  • Turning a screw with a screwdriver pushes the screw into the wood. The force is __________ over many turns
    9·1 answer
  • A closed system contains propane at 35°c. It produces 35 kW of work while absorbing 35 kW of heat. What is process? the temperat
    7·1 answer
  • What gage pressure does a skin diver experience when they dive to 35 ft in the ocean with a water temperature of 55 °F? Report y
    9·1 answer
  • Disconnecting means shall be capable of being locked in the open position. The provisions for locking do not have to reamin in p
    14·1 answer
  • A Coca Cola can with diameter 62 mm and wall thickness 300 um has an internal pressure of 100 kPa. Calculate the principal stres
    9·1 answer
  • My t!t$ feel sore and heavyy
    13·1 answer
  • ) A flow is divided into two branches, with the pipe diameter and length the same for each branch. A 1/4-open gate valve is inst
    5·1 answer
  • Analyze the example of this band saw wheel and axle. The diameter of the wheel is 14 inches. The diameter of the axle that drive
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!